refactor: set MaxAge
This commit is contained in:
parent
ce93591ff8
commit
b55c1f7d48
|
@ -174,6 +174,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
|
||||||
Name: routeableApi.AuthTokenName(),
|
Name: routeableApi.AuthTokenName(),
|
||||||
Value: "",
|
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),
|
||||||
|
MaxAge: -1,
|
||||||
Secure: true,
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
|
|
Loading…
Reference in New Issue