From 2246bb77829bdf93f04254c0142fca2cc215462a Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 28 Apr 2025 13:18:33 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F(frontend)=20lower=20silent?= =?UTF-8?q?=20login=20retry=20interval=20from=205=20min=20to=2030=20sec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change enhances user experience by making automatic login more responsive. Only occurs on app navigation/refresh, not internal navigation. Testing in production, can revert if needed. Will later refactor to use backend configuration. --- src/frontend/src/features/auth/api/fetchUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/auth/api/fetchUser.ts b/src/frontend/src/features/auth/api/fetchUser.ts index 1ed3f14a..deed1760 100644 --- a/src/frontend/src/features/auth/api/fetchUser.ts +++ b/src/frontend/src/features/auth/api/fetchUser.ts @@ -26,7 +26,7 @@ export const fetchUser = ( // make sure to not resolve the promise while trying to silent login // so that consumers of fetchUser don't think the work already ended if (opts.attemptSilent && canAttemptSilentLogin()) { - attemptSilentLogin(300) + attemptSilentLogin(30) } else { resolve(false) }