diff --git a/frontend/app/api_client.ts b/frontend/app/api_client.ts index 431cea014..a8ac9b3b2 100644 --- a/frontend/app/api_client.ts +++ b/frontend/app/api_client.ts @@ -198,6 +198,11 @@ export default class APIClient { } return fetch(edp + _path, init).then((response) => { + if (response.status === 403) { + console.warn('API returned 403. Clearing JWT token.'); + this.onUpdateJwt({ jwt: undefined }); // Clear the token + } + if (response.ok) { return response; } else {