Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckJWTFromCookie ¶
CheckJWTFromCookie load JWT check from Cookie and check it
Types ¶
type Claims ¶
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
Click to show internal directories.
Click to hide internal directories.