From 7d10dacad68b08c3164c10a8b0ccb80cf39a4bb7 Mon Sep 17 00:00:00 2001 From: Sergey Mihaylin Date: Fri, 28 Jun 2024 16:20:57 +0300 Subject: [PATCH] Fix: set jwt_token to cookie (instead of token from OIDC) --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 235ae177f..f3fb8c04d 100644 --- a/backend/main.py +++ b/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 )