diff --git a/src/frontend/src/components/authorization/authGuard/index.tsx b/src/frontend/src/components/authorization/authGuard/index.tsx index 263281c84..aca0cf796 100644 --- a/src/frontend/src/components/authorization/authGuard/index.tsx +++ b/src/frontend/src/components/authorization/authGuard/index.tsx @@ -18,8 +18,7 @@ export const ProtectedRoute = ({ children }) => { const shouldRedirect = !isAuthenticated && autoLogin !== undefined && - !autoLogin && - !isAutoLoginEnv; + (!autoLogin || !isAutoLoginEnv); useEffect(() => { const envRefreshTime = LANGFLOW_ACCESS_TOKEN_EXPIRE_SECONDS_ENV;