Documentation
¶
Index ¶
- Variables
- func GenerateToken(claims jwt.Claims, secret interface{}) (string, error)
- func ParseToken(claims jwt.Claims, token string, secret []byte) (*jwt.Token, error)
- func ParseTokenWithKeyFunc(claims jwt.Claims, token string, f jwt.Keyfunc) (*jwt.Token, error)
- func SetOptions(options ...jwt.ParserOption)
- type Claims
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Parser = jwt.NewParser() ErrInvalidToken = errors.New("invalid token") )
Functions ¶
func GenerateToken ¶
func ParseToken ¶
func ParseTokenWithKeyFunc ¶
func SetOptions ¶ added in v0.7.3
func SetOptions(options ...jwt.ParserOption)
Types ¶
Click to show internal directories.
Click to hide internal directories.