Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitToken ¶
func InitToken(app app.Application)
InitToken initializes the token by weither loading the keys from the filesystem with the loadToken() function or by generating temporarily ones with the generateToken() function
Types ¶
type CustomClaims ¶
type CustomClaims struct { *jwt.StandardClaims TokenType string User models.LoggedUser Scopes map[string]bool }
CustomClaims Auth Claims
func VerifyJWT ¶
func VerifyJWT(tokenString string) (*CustomClaims, error)
VerifyJWT extracts and verifies the validity of the JWT
Click to show internal directories.
Click to hide internal directories.