fix: Logout suspended users immediately

This commit is contained in:
Tom Moor
2021-04-08 21:04:34 -07:00
parent ed779a250f
commit 326518873e

View File

@ -154,6 +154,10 @@ class ApiClient {
}
if (response.status === 403) {
if (error.error === "user_suspended") {
stores.auth.logout();
return;
}
throw new AuthorizationError(error.message);
}