refactor: change ClearAuthCookie to set value to deleted

This commit is contained in:
Derrick Hammer 2024-03-19 10:59:38 -04:00
parent d1bbe7c158
commit ac61279081
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
http.SetCookie(jc.ResponseWriter, &http.Cookie{ http.SetCookie(jc.ResponseWriter, &http.Cookie{
Name: routeableApi.AuthTokenName(), Name: routeableApi.AuthTokenName(),
Value: "", Value: "deleted",
Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC), Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC),
Secure: true, Secure: true,
HttpOnly: true, HttpOnly: true,