Documentation ¶
Index ¶
Constants ¶
View Source
const (
// IsRefreshTokenClaim is the claim for refresh token
IsRefreshTokenClaim = "irt"
)
Variables ¶
View Source
var ( UnableToReadKeyFileError = errors.New("unable to read private key file") UnableToParsePrivateKeyError = errors.New("unable to parse private key") UnableToParsePublicKeyError = errors.New("unable to parse public key") InvalidTokenError = errors.New("invalid token") UnableToIssueTokenError = errors.New("unable to issue token") UnexpectedSigningMethodError = errors.New("unexpected signing method") InvalidClaimsError = errors.New("invalid claims") IRTNotValidError = errors.New("irt not valid") MustBeAccessTokenError = errors.New("must be access token") MustBeRefreshTokenError = errors.New("must be refresh token") )
Functions ¶
func LoadJwtKey ¶
LoadJwtKey loads the JWT key from the environment
func ReadJwtKey ¶
ReadJwtKey reads the JWT key from the given path
Types ¶
Click to show internal directories.
Click to hide internal directories.