fix(login): fix race in autofocus

This commit is contained in:
Edouard Vanbelle
2026-08-09 11:16:14 +02:00
parent 69c342f2ed
commit 107dbfc731
3 changed files with 21 additions and 1 deletions
@@ -8,7 +8,8 @@ const { fetchMeMock } = vi.hoisted(() => ({ fetchMeMock: vi.fn() }));
vi.mock('$lib/api/endpoints/auth', () => ({
fetchMe: () => fetchMeMock(),
tryRefresh: vi.fn(async () => false)
tryRefresh: vi.fn(async () => false),
bindDpopIfPossible: vi.fn(async () => false)
}));
import { session } from './session.svelte';