Timothy Jaeryang Baek 4 miesięcy temu
rodzic
commit
4e82c44f3e
1 zmienionych plików z 1 dodań i 1 usunięć
  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_base_url = request.app.state.config.WEBUI_URL or request.base_url
-        if redirect_base_url.endswith("/"):
+        if isinstance(redirect_base_url, str) and redirect_base_url.endswith("/"):
             redirect_base_url = redirect_base_url[:-1]
         redirect_url = f"{redirect_base_url}/auth#token={jwt_token}"