From 3dc5c728402ace779ec31708c3cd54632a4825a6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 16 Mar 2024 21:14:43 -0400 Subject: [PATCH] fix: auth cookie needs to be at the root path --- api/account/account.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/account/account.go b/api/account/account.go index d23e137..88077a0 100644 --- a/api/account/account.go +++ b/api/account/account.go @@ -120,6 +120,7 @@ func (a AccountAPI) login(jc jape.Context) { Value: jwt, Expires: time.Now().Add(24 * time.Hour), HttpOnly: true, + Path: "/", }) account.SendJWT(jc, jwt) @@ -220,6 +221,7 @@ func (a AccountAPI) otpValidate(jc jape.Context) { Value: jwt, Expires: time.Now().Add(24 * time.Hour), HttpOnly: true, + Path: "/", }) account.SendJWT(jc, jwt)