Fix: set jwt_token to cookie (instead of token from OIDC)

This commit is contained in:
Sergey Mihaylin 2024-06-28 16:20:57 +03:00
parent 57c330576d
commit 7d10dacad6

View File

@ -1983,7 +1983,7 @@ async def oauth_callback(provider: str, request: Request, response: Response):
# Set the cookie token
response.set_cookie(
key="token",
value=token,
value=jwt_token,
httponly=True, # Ensures the cookie is not accessible via JavaScript
)