Browse Source

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

Sergey Mihaylin 10 months ago
parent
commit
7d10dacad6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/main.py

+ 1 - 1
backend/main.py

@@ -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
     )
     )