Set maxAge

This commit is contained in:
Daniel Ponte 2025-01-09 13:44:43 -05:00
parent 5728c438aa
commit dea68f2126

View file

@ -245,6 +245,7 @@ func (a *Auth) routeAuth(w http.ResponseWriter, r *http.Request) {
Path: "/",
HttpOnly: true,
Secure: true,
MaxAge: 60 * 60 * 24 * 30, // one month
}
cookie.Domain = r.Host