From d1bbe7c1585d93fb3b4494569789358d92b7675f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 10:57:49 -0400 Subject: [PATCH] refactor: change ClearAuthCookie to set expires date to epoch --- account/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/jwt.go b/account/jwt.go index 75d426b..d316fbe 100644 --- a/account/jwt.go +++ b/account/jwt.go @@ -169,7 +169,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) { http.SetCookie(jc.ResponseWriter, &http.Cookie{ Name: routeableApi.AuthTokenName(), Value: "", - Expires: time.Now().Add(-1 * time.Hour), + Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC), Secure: true, HttpOnly: true, Path: "/",