Documentation ¶
Index ¶
Constants ¶
View Source
const AuthTokenValidTime = time.Minute * 15
View Source
const RefreshTokenValidTime = time.Hour * 72
Variables ¶
This section is empty.
Functions ¶
func GenerateCSRFSecret ¶
Types ¶
type TokenClaims ¶
type TokenClaims struct { jwt.StandardClaims Role string `json:"role"` Csrf string `json:"csrf"` }
Click to show internal directories.
Click to hide internal directories.