Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 9e5d996f20
fix: remove Secure property 2024-03-18 16:40:29 -04:00
Derrick Hammer 649e0e0011
Revert "fix: remove Secure property"
This reverts commit 044604d863.
2024-03-18 16:40:18 -04:00
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,6 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) {
Name: routeableApi.AuthTokenName(),
Value: jwt,
Expires: time.Now().Add(24 * time.Hour),
Secure: true,
HttpOnly: true,
Path: "/",
Domain: routeableApi.Domain(),
@ -137,6 +136,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
Name: routeableApi.AuthTokenName(),
Value: "",
Expires: time.Now().Add(-1 * time.Hour),
Secure: true,
HttpOnly: true,
Path: "/",
Domain: routeableApi.Domain(),