package
1.0.6
Repository: https://github.com/wuyoushe/hyper-go.git
Documentation: pkg.go.dev

# Functions

FromAuthHeader is a "TokenExtractor" that takes a give context and extracts the JWT token from the Authorization header.
FromFirst returns a function that runs multiple token extractors and takes the first token it finds.
FromParameter returns a function that extracts the token from the specified query string parameter.
New constructs a new Secure instance with supplied options.
OnError is the default error handler.

# Constants

DefaultContextKey jwt.

# Variables

ErrTokenExpired is the error value that it's returned when a token value is found and it's valid but it's expired.
ErrTokenInvalid is the error value that it's returned when a token is not valid.
ErrTokenMissing is the error value that it's returned when a token is not found based on the token extractor.
Shortcuts to create a new Token.
Shortcuts to create a new Token.
ECDSA - EC256 and company.
ECDSA - EC256 and company.
ECDSA - EC256 and company.
HS256 and company.
HS256 and company.
HS256 and company.

# Structs

Config is a struct for specifying configuration options for the jwt middleware.
Middleware the middleware for JSON Web tokens authentication method.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
TokenExtractor is a function that takes a context as input and returns either a token or an error.