package
2.2.2
Repository: https://github.com/auth0/go-jwt-middleware.git
Documentation: pkg.go.dev

# Functions

New sets up a new Validator with the required keyFunc and signatureAlgorithm as well as custom options.
WithAllowedClockSkew is an option which sets up the allowed clock skew for the token.
WithCustomClaims sets up a function that returns the object CustomClaims that will be unmarshalled into and on which Validate is called on for custom validation.

# Constants

Signature algorithms.
ECDSA using P-256 and SHA-256.
ECDSA using P-384 and SHA-384.
ECDSA using P-521 and SHA-512.
HMAC using SHA-256.
HMAC using SHA-384.
HMAC using SHA-512.
RSASSA-PSS using SHA256 and MGF1-SHA256.
RSASSA-PSS using SHA384 and MGF1-SHA384.
RSASSA-PSS using SHA512 and MGF1-SHA512.
RSASSA-PKCS-v1.5 using SHA-256.
RSASSA-PKCS-v1.5 using SHA-384.
RSASSA-PKCS-v1.5 using SHA-512.

# Structs

RegisteredClaims represents public claim values (as specified in RFC 7519).
ValidatedClaims is the struct that will be inserted into the context for the user.
Validator to use with the jose v2 package.

# Interfaces

CustomClaims defines any custom data / claims wanted.

# Type aliases

Option is how options for the Validator are set up.
SignatureAlgorithm is a signature algorithm.