fix: Logout suspended users immediately
This commit is contained in:
@ -154,6 +154,10 @@ class ApiClient {
|
||||
}
|
||||
|
||||
if (response.status === 403) {
|
||||
if (error.error === "user_suspended") {
|
||||
stores.auth.logout();
|
||||
return;
|
||||
}
|
||||
throw new AuthorizationError(error.message);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user