Compare commits
2 Commits
044604d863
...
9e5d996f20
Author | SHA1 | Date |
---|---|---|
|
9e5d996f20 | |
|
649e0e0011 |
|
@ -114,7 +114,6 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) {
|
||||||
Name: routeableApi.AuthTokenName(),
|
Name: routeableApi.AuthTokenName(),
|
||||||
Value: jwt,
|
Value: jwt,
|
||||||
Expires: time.Now().Add(24 * time.Hour),
|
Expires: time.Now().Add(24 * time.Hour),
|
||||||
Secure: true,
|
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Domain: routeableApi.Domain(),
|
Domain: routeableApi.Domain(),
|
||||||
|
@ -137,6 +136,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
|
||||||
Name: routeableApi.AuthTokenName(),
|
Name: routeableApi.AuthTokenName(),
|
||||||
Value: "",
|
Value: "",
|
||||||
Expires: time.Now().Add(-1 * time.Hour),
|
Expires: time.Now().Add(-1 * time.Hour),
|
||||||
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Domain: routeableApi.Domain(),
|
Domain: routeableApi.Domain(),
|
||||||
|
|
Loading…
Reference in New Issue