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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user