feat(api): fixed jwt extraction
This commit is contained in:
parent
07ee332b4c
commit
4f20d8dde0
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ if True or config("MULTI_TENANTS", cast=bool, default=False) or not tenants.tena
|
|||
refresh_token_max_age = content.pop("refreshTokenMaxAge")
|
||||
response = Response(
|
||||
status_code=status.HTTP_302_FOUND,
|
||||
headers={'Location': config("SITE_URL") + "/login?jwt=" + content})
|
||||
headers={'Location': config("SITE_URL") + "/login?jwt=" + content.pop("jwt")})
|
||||
response.set_cookie(key="refreshToken", value=refresh_token, path="/api/refresh",
|
||||
max_age=refresh_token_max_age, secure=True, httponly=True)
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue