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

# Functions

GetKeyFunc is used to get the key used to sign the JSON Web Tokens.
New returns an encoded and signed JWT Token string with the given claims.
NewTokenProcessorFunc allocates and returns a TokenProcessor function which extracts the user ID from theparsed token, retrieves the user from database and stores it in the context.

# Variables

Duration used for the token expiration.
ErrInvalidUserID is returned when a user ID is not found.
Secret is the key used to sign the JWT tokens.

# Structs

TokenProcessorOptions is a struct for specifying configuration options for the middleware.