Versions in this module Expand all Collapse all v0 v0.3.61 Jan 17, 2024 Changes in this version + var ErrContextError = errors.New("value missing from context") + var ErrKeyFormat = errors.New("key format error") + var ErrTokenVerification = errors.New("failed to verify token") + type JWTIssuer struct + func NewJWTIssuer(options *Options) *JWTIssuer + func (i *JWTIssuer) DecodeJWEToken(tokenString string, claims interface{}) error + func (i *JWTIssuer) EncodeJWEToken(claims interface{}) (string, error) + func (i *JWTIssuer) EncodeJWT(claims interface{}) (string, error) + func (i *JWTIssuer) GetKeyPair() (any, crypto.PrivateKey, string, error) + func (i *JWTIssuer) JWKS() (*jose.JSONWebKeySet, error) + type Options struct + TLSCertPath string + TLSKeyPath string + func (o *Options) AddFlags(f *pflag.FlagSet)