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{
|
||||
Name: name,
|
||||
Value: routeableApi.AuthTokenName(),
|
||||
Name: routeableApi.AuthTokenName(),
|
||||
Value: jwt,
|
||||
Expires: time.Now().Add(24 * time.Hour),
|
||||
Secure: true,
|
||||
HttpOnly: true,
|
||||
|
|
Loading…
Reference in New Issue