package
Version:
v0.0.0-...-6076d7e
Opens a new window with list of versions in this module.
Published: Mar 21, 2023
License: Apache-2.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.