diff --git a/backend/ee/onyx/main.py b/backend/ee/onyx/main.py index 631fcb2d7f7..4c44a1aecf9 100644 --- a/backend/ee/onyx/main.py +++ b/backend/ee/onyx/main.py @@ -131,13 +131,6 @@ def get_application() -> FastAPI: prefix="/auth", ) - # Add refresh token endpoint for OIDC - include_auth_router_with_prefix( - application, - fastapi_users.get_refresh_router(auth_backend), - prefix="/auth", - ) - elif AUTH_TYPE == AuthType.SAML: include_auth_router_with_prefix( application, diff --git a/backend/onyx/main.py b/backend/onyx/main.py index 5805199c3fa..fc181a98b6b 100644 --- a/backend/onyx/main.py +++ b/backend/onyx/main.py @@ -360,13 +360,6 @@ def get_application() -> FastAPI: prefix="/users", ) - # Add refresh token endpoint - include_auth_router_with_prefix( - application, - fastapi_users.get_refresh_router(auth_backend), - prefix="/auth", - ) - if AUTH_TYPE == AuthType.GOOGLE_OAUTH: # For Google OAuth, refresh tokens are requested by: # 1. Adding the right scopes