fix: name needs to be AuthTokenName, actually use jwt
This commit is contained in:
parent
fd75ec3f6a
commit
0e18f695cf
|
@ -111,8 +111,8 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
http.SetCookie(jc.ResponseWriter, &http.Cookie{
|
http.SetCookie(jc.ResponseWriter, &http.Cookie{
|
||||||
Name: name,
|
Name: routeableApi.AuthTokenName(),
|
||||||
Value: routeableApi.AuthTokenName(),
|
Value: jwt,
|
||||||
Expires: time.Now().Add(24 * time.Hour),
|
Expires: time.Now().Add(24 * time.Hour),
|
||||||
Secure: true,
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
|
|
Loading…
Reference in New Issue