Versions in this module Expand all Collapse all v12 v12.3.1 Feb 23, 2023 v12.3.0 Feb 22, 2023 v12.2.2 Feb 22, 2023 v12.2.1 Feb 22, 2023 v12.2.0 Feb 22, 2023 Changes in this version + var ES256 = jwt.ES256 + var ES384 = jwt.ES384 + var ES512 = jwt.ES512 + var EdDSA = jwt.EdDSA + var ErrBlocked = jwt.ErrBlocked + var ErrDecrypt = jwt.ErrDecrypt + var ErrExpected = jwt.ErrExpected + var ErrExpired = jwt.ErrExpired + var ErrInvalidKey = jwt.ErrInvalidKey + var ErrIssuedInTheFuture = jwt.ErrIssuedInTheFuture + var ErrMissing = jwt.ErrMissing + var ErrMissingKey = jwt.ErrMissingKey + var ErrNotValidYet = jwt.ErrNotValidYet + var ErrTokenAlg = jwt.ErrTokenAlg + var ErrTokenForm = jwt.ErrTokenForm + var ErrTokenSignature = jwt.ErrTokenSignature + var GCM = jwt.GCM + var HS256 = jwt.HS256 + var HS384 = jwt.HS384 + var HS512 = jwt.HS512 + var ID = func(id string) jwt.SignOptionFunc + var Leeway = jwt.Leeway + var LoadHMAC = jwt.LoadHMAC + var LoadPrivateKeyECDSA = jwt.LoadPrivateKeyECDSA + var LoadPrivateKeyEdDSA = jwt.LoadPrivateKeyEdDSA + var LoadPrivateKeyRSA = jwt.LoadPrivateKeyRSA + var LoadPublicKeyECDSA = jwt.LoadPublicKeyECDSA + var LoadPublicKeyEdDSA = jwt.LoadPublicKeyEdDSA + var LoadPublicKeyRSA = jwt.LoadPublicKeyRSA + var MaxAge = jwt.MaxAge + var MustGenerateRandom = jwt.MustGenerateRandom + var MustLoadECDSA = jwt.MustLoadECDSA + var MustLoadEdDSA = jwt.MustLoadEdDSA + var MustLoadHMAC = jwt.MustLoadHMAC + var MustLoadRSA = jwt.MustLoadRSA + var PS256 = jwt.PS256 + var PS384 = jwt.PS384 + var PS512 = jwt.PS512 + var ParsePrivateKeyECDSA = jwt.ParsePrivateKeyECDSA + var ParsePrivateKeyEdDSA = jwt.ParsePrivateKeyEdDSA + var ParsePrivateKeyRSA = jwt.ParsePrivateKeyRSA + var ParsePublicKeyECDSA = jwt.ParsePublicKeyECDSA + var ParsePublicKeyEdDSA = jwt.ParsePublicKeyEdDSA + var ParsePublicKeyRSA = jwt.ParsePublicKeyRSA + var RS256 = jwt.RS256 + var RS384 = jwt.RS384 + var RS512 = jwt.RS512 + var Sign = jwt.Sign + var SignEncrypted = jwt.SignEncrypted + var Verify = jwt.Verify + var VerifyEncryptedToken = jwt.VerifyEncrypted + func FromHeader(ctx *context.Context) string + func FromQuery(ctx *context.Context) string + func Get(ctx *context.Context) interface + type Alg = jwt.Alg + type Blocklist interface + Count func() (int64, error) + Del func(key string) error + Has func(key string) (bool, error) + InvalidateToken func(token []byte, c Claims) error + type Claims = jwt.Claims + type ClaimsContextValidator interface + Validate func(*context.Context) error + type ClaimsValidator interface + Validate func() error + type Expected = jwt.Expected + type SignOption = jwt.SignOption + type Signer struct + Alg Alg + Encrypt func([]byte) ([]byte, error) + Key interface{} + MaxAge time.Duration + Options []SignOption + func NewSigner(signatureAlg Alg, signatureKey interface{}, maxAge time.Duration) *Signer + func (s *Signer) NewTokenPair(accessClaims interface{}, refreshClaims interface{}, ...) (TokenPair, error) + func (s *Signer) Sign(claims interface{}, opts ...SignOption) ([]byte, error) + func (s *Signer) WithEncryption(key, additionalData []byte) *Signer + type TokenExtractor func(*context.Context) string + func FromJSON(jsonKey string) TokenExtractor + type TokenPair = jwt.TokenPair + type TokenValidator = jwt.TokenValidator + type VerifiedToken = jwt.VerifiedToken + func GetVerifiedToken(ctx *context.Context) *VerifiedToken + type Verifier struct + Alg Alg + Blocklist Blocklist + Decrypt func([]byte) ([]byte, error) + DisableContextUser bool + ErrorHandler func(ctx *context.Context, err error) + Extractors []TokenExtractor + Key interface{} + Validators []TokenValidator + func NewVerifier(signatureAlg Alg, signatureKey interface{}, validators ...TokenValidator) *Verifier + func (v *Verifier) RequestToken(ctx *context.Context) (token string) + func (v *Verifier) Verify(claimsType func() interface{}, validators ...TokenValidator) context.Handler + func (v *Verifier) VerifyToken(token []byte, validators ...TokenValidator) (*VerifiedToken, error) + func (v *Verifier) WithDecryption(key, additionalData []byte) *Verifier + func (v *Verifier) WithDefaultBlocklist() *Verifier