Fix authentication issue

This commit is contained in:
2024-08-31 18:52:29 +02:00
parent 2022e99274
commit 871d5109bf
3 changed files with 4 additions and 20 deletions

View File

@ -163,7 +163,7 @@ export class APIClient {
// Handle expired tokens
if (status === 412) {
AuthApi.UnsetAuthenticated();
window.location.href = import.meta.env.VITE_APP_BASENAME;
window.location.href = "/";
}
if (!args.allowFail && (status < 200 || status > 299))