diff --git a/src/providers/auth-provider.tsx b/src/providers/auth-provider.tsx index 4254fb7..c406bd6 100644 --- a/src/providers/auth-provider.tsx +++ b/src/providers/auth-provider.tsx @@ -119,6 +119,7 @@ export const AuthProvider = ({ children }: AuthProviderProps) => { await fetch(`${apiUrl}/auth/logout`, { method: 'POST', headers: { Authorization: `Bearer ${token}` }, + keepalive: true, // survives page navigation — ensures session unlock completes signal: AbortSignal.timeout(5000), }); } catch (err) {