From b55c1f7d485fd4352fa608ee2b7cbdcce811c706 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 11:43:11 -0400 Subject: [PATCH] refactor: set MaxAge --- account/jwt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/account/jwt.go b/account/jwt.go index f99a529..d528b32 100644 --- a/account/jwt.go +++ b/account/jwt.go @@ -174,6 +174,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) { Name: routeableApi.AuthTokenName(), Value: "", Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC), + MaxAge: -1, Secure: true, HttpOnly: true, Path: "/",