refactor: set MaxAge

This commit is contained in:
Derrick Hammer 2024-03-19 11:43:11 -04:00
parent ce93591ff8
commit b55c1f7d48
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
Name: routeableApi.AuthTokenName(),
Value: "",
Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC),
MaxAge: -1,
Secure: true,
HttpOnly: true,
Path: "/",