Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClaimsJwtID = "jti" ClaimsIssuer = "iss" ClaimsSubject = "sub" ClaimsAudience = "aud" ClaimsIssuedAt = "iat" ClaimsExpiresAt = "exp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticClaims ¶
type TokenManager ¶
type TokenManager interface { NewToken(id uuid.UUID, ttl time.Duration, secret Secret) (string, error) ParseToken(token string, secret Secret) (jwt5.MapClaims, error) }
func NewTokenManager ¶
func NewTokenManager(accessSecret, refreshSecret string, claims StaticClaims) TokenManager
Click to show internal directories.
Click to hide internal directories.