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