diff --git a/src/backend/langflow/services/settings/auth.py b/src/backend/langflow/services/settings/auth.py index 8463d0781..8cf543055 100644 --- a/src/backend/langflow/services/settings/auth.py +++ b/src/backend/langflow/services/settings/auth.py @@ -22,7 +22,7 @@ class AuthSettings(BaseSettings): frozen=False, ) ALGORITHM: str = "HS256" - ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 + ACCESS_TOKEN_EXPIRE_MINUTES: int = 1 REFRESH_TOKEN_EXPIRE_MINUTES: int = 60 * 12 * 7 # API Key to execute /process endpoint diff --git a/src/frontend/src/controllers/API/api.tsx b/src/frontend/src/controllers/API/api.tsx index 0ad67cecb..c467d66bb 100644 --- a/src/frontend/src/controllers/API/api.tsx +++ b/src/frontend/src/controllers/API/api.tsx @@ -107,6 +107,7 @@ function ApiInterceptor() { async function tryToRenewAccessToken(error: AxiosError) { try { + if (window.location.pathname.includes("/login")) return; const res = await renewAccessToken(); if (res?.data?.access_token && res?.data?.refresh_token) { login(res?.data?.access_token);