Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingJwtToken = errors.New("JWT token is missing") ErrTokenInvalid = errors.New("JWT token is invalid") ErrTokenExpired = errors.New("JWT token is expired") ErrTokenParseFail = errors.New("fail to parse JWT token") ErrUnSupportSigningMethod = errors.New("unsupported signing method") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
Apply(*Options)
}
func WithAudience ¶
func WithExpiresTime ¶
func WithIssuer ¶
func WithSigningKey ¶
func WithSigningMethod ¶
func WithSigningMethod(signingMethod jwt.SigningMethod) Option
Click to show internal directories.
Click to hide internal directories.