diff --git a/frontend/lib/api.ts b/frontend/lib/api.ts index c0805fd..96376c3 100644 --- a/frontend/lib/api.ts +++ b/frontend/lib/api.ts @@ -118,6 +118,7 @@ class ApiClient { if (response.status === 401) { this.setToken(null); triggerAuthError(); + throw new Error('Session expired'); } throw new Error('Failed to execute command'); }