refactor: change ClearAuthCookie to set value to deleted
This commit is contained in:
parent
d1bbe7c158
commit
ac61279081
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue