Explorar o código

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

Sergey Mihaylin hai 10 meses
pai
achega
7d10dacad6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
     response.set_cookie(
         key="token",
-        value=token,
+        value=jwt_token,
         httponly=True,  # Ensures the cookie is not accessible via JavaScript
     )