package
0.0.0-20240811142457-7e33354fa83f
Repository: https://github.com/hidevopsio/middleware.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 default error handler.

# Constants

DefaultContextKey jwt.

# Structs

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

# Type aliases

TokenExtractor is a function that takes a context as input and returns either a token or an error.