Fix: cookie timeout
All checks were successful
All checks were successful
This commit is contained in:
@@ -63,10 +63,14 @@ func (self *Handlers) PostLogin(
|
||||
}
|
||||
|
||||
http.SetCookie(w, &http.Cookie{
|
||||
Name: "refresh_token",
|
||||
Value: session.RefreshToken,
|
||||
Name: "refresh_token",
|
||||
Value: session.RefreshToken,
|
||||
Path: "/",
|
||||
Secure: viper.GetBool("https"),
|
||||
HttpOnly: true,
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
Expires: time.Now().Add(time.Duration(
|
||||
viper.GetInt64("REFRESH_TOKEN_TIMEOUT")) * time.Second),
|
||||
viper.GetInt64("refresh-token-timeout")) * time.Second),
|
||||
})
|
||||
|
||||
return utils.Success(w)
|
||||
|
||||
Reference in New Issue
Block a user