package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Jul 6, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
SigKey JWT signature key and you need to set your own!
New creates new JWT with claims payload.
type Claims struct {
UserID string
Level string
jwt.StandardClaims
}
Claims represents JWT payload.
Parse validates and extract claims from token.
ParseFromHeader parses Authorization bearer token as JWT.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.