Revert "refactor: change ClearAuthCookie to set value to deleted"

This reverts commit ac61279081.
This commit is contained in:
Derrick Hammer 2024-03-19 11:40:34 -04:00
parent 6ac37cfe65
commit ce93591ff8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,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: "deleted", Value: "",
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,