From 0e18f695cfaed2d56c11839fb5396a26ee81452c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 17 Mar 2024 09:22:47 -0400 Subject: [PATCH] fix: name needs to be AuthTokenName, actually use jwt --- account/jwt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account/jwt.go b/account/jwt.go index 10ab58a..27f530a 100644 --- a/account/jwt.go +++ b/account/jwt.go @@ -111,8 +111,8 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) { } http.SetCookie(jc.ResponseWriter, &http.Cookie{ - Name: name, - Value: routeableApi.AuthTokenName(), + Name: routeableApi.AuthTokenName(), + Value: jwt, Expires: time.Now().Add(24 * time.Hour), Secure: true, HttpOnly: true,