package
2.1.0+incompatible
Repository: https://github.com/syb-devs/goth.git
Documentation: pkg.go.dev

# Functions

FromAuthHeader is a "TokenExtractor" that takes a give request 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.
No description provided by the author
ToContextKey is a TokenProcessor function which stores the parsed JWT Token in the context k/v store under the key jwt.

# Structs

No description provided by the author
Options is a struct for specifying configuration options for the middleware.

# Type aliases

TokenExtractor is a function that takes a request as input and returns either a token or an error.
TokenProcessor is a function that takes a context and the decoded token and stores the token or any of its claims where needed.