mirror of
https://github.com/johndoe6345789/docker-swarm-termina.git
synced 2026-04-24 13:45:01 +00:00
Update frontend/lib/api.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user