package
Version:
v0.0.0-...-0f828a4
Opens a new window with list of versions in this module.
Published: Jan 6, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Creates a new JWT that contains the provided Claim signed by the key from the configuration.
Parses a JWT by first converting the supplied token string into a jwt.Token and then checking if the token is valid.
Something that can be encoded into JWT claims.
type ClaimOptions struct {
Claim jwt.MapClaims
Exp time.Duration
}
Contains options for the JWT creation.
type UserClaim struct {
UserId uint
}
Returns a new UserClaim instance.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.