fix: Regression loading shares in #5552

fix: Double auth.info load with multiple tabs open
fix: Request loop when suspended with multiple tabs open
This commit is contained in:
Tom Moor
2023-07-15 21:10:22 -04:00
parent 39e12cef65
commit e653b185a4
3 changed files with 14 additions and 14 deletions

View File

@@ -131,8 +131,7 @@ class ApiClient {
// Handle 401, log out user
if (response.status === 401) {
const tokenIsExpired = true;
await stores.auth.logout(false, tokenIsExpired);
await stores.auth.logout(false, false);
return;
}
@@ -163,7 +162,7 @@ class ApiClient {
if (response.status === 403) {
if (error.error === "user_suspended") {
await stores.auth.logout();
await stores.auth.logout(false, false);
return;
}