Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTokensAndSetCookies ¶
GenerateTokensAndSetCookies generates jwt token and saves it to the http-only cookie.
Types ¶
type Claims ¶
type Claims struct {
Name string `json:"name"`
jwt.StandardClaims
}
Create 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.