Commit 7d10daca authored by Sergey Mihaylin's avatar Sergey Mihaylin
Browse files

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

parent 57c33057
...@@ -1983,7 +1983,7 @@ async def oauth_callback(provider: str, request: Request, response: Response): ...@@ -1983,7 +1983,7 @@ async def oauth_callback(provider: str, request: Request, response: Response):
# Set the cookie token # Set the cookie token
response.set_cookie( response.set_cookie(
key="token", key="token",
value=token, value=jwt_token,
httponly=True, # Ensures the cookie is not accessible via JavaScript httponly=True, # Ensures the cookie is not accessible via JavaScript
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment