# Functions

ExtractClaimsFromContext help to extract the JWT claims.
New for check error with GinJWTMiddleware.

# Variables

ErrEmptyAuthHeader can be thrown if authing with a HTTP header, the Auth header needs to be set.
ErrEmptyParamToken can be thrown if authing with parameter in path, the parameter in path is empty.
ErrEmptyQueryToken can be thrown if authing with URL Query, the query token variable is empty.
in practice, this is generated from the jwt library not by us.
ErrFailedAuthentication indicates authentication failed, could be faulty username or password.
ErrFailedTokenCreation indicates JWT Token failed to create, reason unknown.
ErrInvalidAuthHeader indicates auth header is invalid, could for example have the wrong Realm name.
ErrInvalidSigningAlgorithm indicates signing algorithm is invalid, needs to be HS256, HS384, HS512.
ErrMissingAuthenticatorFunc indicates Authenticator is required.
ErrMissingExpField missing exp field in token.
ErrMissingLoginValues indicates a user tried to authenticate without username or password.
ErrMissingSecretKey indicates Secret key is required.
ErrWrongFormatOfExp field must be float64 format.

# Structs

GinJWTMiddleware provides a Json-Web-Token authentication implementation.

# Type aliases

MapClaims type that uses the map[string]any for JSON decoding This is the default claims type if you don't supply one.