Update mockDb.ts
This commit is contained in:
@@ -23,7 +23,6 @@ async function request<T>(endpoint: string, options: RequestInit = {}): Promise<
|
||||
headers,
|
||||
});
|
||||
|
||||
// CORREZIONE VITALE: Se il token è scaduto (401), forza il logout immediato
|
||||
if (response.status === 401) {
|
||||
console.warn("Sessione scaduta. Logout in corso...");
|
||||
CondoService.logout();
|
||||
|
||||
Reference in New Issue
Block a user