From bece79f47b0c9d0ef9adf90e872249268888e4f8 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 25 Sep 2024 14:41:50 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(frontend)=20increase=20silen?= =?UTF-8?q?t=20login=20attempts=20to=20every=205=20minutes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Maximize logged-in users. This ensures that users remain authenticated more consistently across sessions without manual intervention. --- 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 2c1757b8..217536da 100644 --- a/src/frontend/src/features/auth/api/fetchUser.ts +++ b/src/frontend/src/features/auth/api/fetchUser.ts @@ -20,7 +20,7 @@ export const fetchUser = (): Promise => { // 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 (canAttemptSilentLogin()) { - attemptSilentLogin(3600) + attemptSilentLogin(300) } else { resolve(false) }