From 86c961e342f59d113596e47496520d2356f70f62 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 15 Oct 2024 03:30:02 -0700 Subject: [PATCH] fix --- backend/open_webui/utils/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/open_webui/utils/utils.py b/backend/open_webui/utils/utils.py index e087cb48f..79faa1831 100644 --- a/backend/open_webui/utils/utils.py +++ b/backend/open_webui/utils/utils.py @@ -73,7 +73,6 @@ def get_http_authorization_cred(auth_header: str): def get_current_user( request: Request, - response: Response, auth_token: HTTPAuthorizationCredentials = Depends(bearer_security), ): token = None @@ -104,8 +103,6 @@ def get_current_user( Users.update_user_last_active_by_id(user.id) return user else: - response.set_cookie("token", "", expires=0) - raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail=ERROR_MESSAGES.UNAUTHORIZED,