mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
Fix: set jwt_token to cookie (instead of token from OIDC)
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user