updated cookies ttl to 30 days

This commit is contained in:
AndReicscs
2026-06-21 13:30:00 +00:00
parent dd7715fbed
commit b575b43e26
+2 -1
View File
@@ -50,7 +50,8 @@ func (h *AuthHandler) Login(w http.ResponseWriter, r *http.Request) {
http.SetCookie(w, &http.Cookie{
Name: AuthCookieName,
Value: token,
MaxAge: 2592000,
MaxAge: 2592000, // 30 days in seconds
Expires: time.Now().Add(30 * 24 * time.Hour),
HttpOnly: true,
Secure: isProd,
SameSite: http.SameSiteStrictMode,