♻️(frontend) increase silent login attempts to every 5 minutes

Maximize logged-in users. This ensures that users remain authenticated
more consistently across sessions without manual intervention.
This commit is contained in:
lebaudantoine
2024-09-25 14:41:50 +02:00
committed by aleb_the_flash
parent a499331960
commit bece79f47b

View File

@@ -20,7 +20,7 @@ export const fetchUser = (): Promise<ApiUser | false> => {
// 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)
}