Documentation
¶
Index ¶
Constants ¶
View Source
const ExpirationClaimKey = "exp"
View Source
const RefreshTokenTime = 3 * 24 * time.Hour
refresh token if it expires in 3 days
View Source
const UserIdClaimKey = "user_id"
Variables ¶
View Source
var TokenAuth *jwtauth.JWTAuth
Functions ¶
func ClearJwtCookie ¶
func ClearJwtCookie(w http.ResponseWriter)
func SetJwtCookie ¶
func SetJwtCookie(tokenString string, w http.ResponseWriter)
func ShouldRefreshToken ¶
should refresh if token will expire in refresh token time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.