diff --git a/desktop/src/lib/auth.svelte.ts b/desktop/src/lib/auth.svelte.ts index 84e3a9f27..c8c6f2aa5 100644 --- a/desktop/src/lib/auth.svelte.ts +++ b/desktop/src/lib/auth.svelte.ts @@ -23,7 +23,12 @@ export async function checkAuth() { checkAuth, import.meta.env.VITE_AUTH_LONG_DELAY || 30_000, ); - if (get(router.activeRouteStore).resource === "booting") { + // Only leave the booting screen after a failed authentication. On a + // normal start the route is still booting while the first page loads. + if ( + startup.error !== undefined && + get(router.activeRouteStore).resource === "booting" + ) { void router.push({ resource: "inbox" }).finally(deepLinksReady); } else { deepLinksReady();