Timothy Jaeryang Baek 1 week ago
parent
commit
340d9820b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/open_webui/utils/oauth.py

+ 1 - 1
backend/open_webui/utils/oauth.py

@@ -538,7 +538,7 @@ class OAuthManager:
         # Redirect back to the frontend with the JWT token
         # Redirect back to the frontend with the JWT token
 
 
         redirect_base_url = str(request.app.state.config.WEBUI_URL or request.base_url)
         redirect_base_url = str(request.app.state.config.WEBUI_URL or request.base_url)
-        if isinstance(redirect_base_url, str) and redirect_base_url.endswith("/"):
+        if redirect_base_url.endswith("/"):
             redirect_base_url = redirect_base_url[:-1]
             redirect_base_url = redirect_base_url[:-1]
         redirect_url = f"{redirect_base_url}/auth#token={jwt_token}"
         redirect_url = f"{redirect_base_url}/auth#token={jwt_token}"