Compare commits
No commits in common. "9e5d996f20895453737c429440acd8405cc0b249" and "044604d863cc651ecd8bb5912d37fafe321366b0" have entirely different histories.
9e5d996f20
...
044604d863
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue