Compare commits

..

No commits in common. "9e5d996f20895453737c429440acd8405cc0b249" and "044604d863cc651ecd8bb5912d37fafe321366b0" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -114,6 +114,7 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) {
Name: routeableApi.AuthTokenName(),
Value: jwt,
Expires: time.Now().Add(24 * time.Hour),
Secure: true,
HttpOnly: true,
Path: "/",
Domain: routeableApi.Domain(),
@ -136,7 +137,6 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
Name: routeableApi.AuthTokenName(),
Value: "",
Expires: time.Now().Add(-1 * time.Hour),
Secure: true,
HttpOnly: true,
Path: "/",
Domain: routeableApi.Domain(),