Update mockDb.ts

This commit is contained in:
2026-01-09 22:36:10 +01:00
committed by GitHub
parent 7d46704c04
commit 86f68c54d7

View File

@@ -23,7 +23,6 @@ async function request<T>(endpoint: string, options: RequestInit = {}): Promise<
headers, headers,
}); });
// CORREZIONE VITALE: Se il token è scaduto (401), forza il logout immediato
if (response.status === 401) { if (response.status === 401) {
console.warn("Sessione scaduta. Logout in corso..."); console.warn("Sessione scaduta. Logout in corso...");
CondoService.logout(); CondoService.logout();