diff --git a/web/src/stores/authStore.ts b/web/src/stores/authStore.ts index 83019320..9c1c9a6b 100644 --- a/web/src/stores/authStore.ts +++ b/web/src/stores/authStore.ts @@ -45,7 +45,9 @@ export const useAuthStore = create((set) => ({ // No password configured — auto-login const { token } = await api.login(''); setToken(token); - set({ authenticated: true }); + // checking must be cleared here too — App renders null while it + // is true, so leaving it set blanks the app after auto-login. + set({ authenticated: true, checking: false }); return; } } catch {