fix: name needs to be AuthTokenName, actually use jwt

This commit is contained in:
Derrick Hammer 2024-03-17 09:22:47 -04:00
parent fd75ec3f6a
commit 0e18f695cf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -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,