Documentation ¶
Index ¶
Constants ¶
View Source
const (
Issuer = "Nuntio-Hera"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token interface { GenerateToken(ctx context.Context, tokenRepository token_repository.TokenRepository, privateKey *rsa.PrivateKey, claims *go_nuntio.CustomClaims, expiresAt time.Duration, tokenInfo *go_nuntio.Token, loginType go_nuntio.LoginType) (string, *go_nuntio.CustomClaims, error) ValidateToken(publicKey *rsa.PublicKey, jwtToken string) (*go_nuntio.CustomClaims, error) }
func New ¶
func New(repository repository.Repository) (Token, error)
Click to show internal directories.
Click to hide internal directories.