From c65bf3c8e71518193424e2d3af1c1c6ec201280d Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Thu, 9 Jan 2025 13:44:43 -0500 Subject: [PATCH] Set maxAge (#99) --- pkg/auth/jwt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/auth/jwt.go b/pkg/auth/jwt.go index 4dc8bf6..99c2ba7 100644 --- a/pkg/auth/jwt.go +++ b/pkg/auth/jwt.go @@ -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