package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Sep 21, 2023
License: AGPL-3.0, AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CheckJWTFromCookie load JWT check from Cookie and check it
CreateJWTCookie create new JWT as Cookie
type Claims struct {
Username string `json:"username"`
jwt.StandardClaims
}
Claims a struct that will be encoded to a JWT.
We add jwt.StandardClaims as an embedded type, to provide fields like expiry time
Source Files
¶
Click to show internal directories.
Click to hide internal directories.