parent
6d1d7b5366
commit
62dede02ea
3 changed files with 22 additions and 11 deletions
|
|
@ -47,7 +47,7 @@ function fetchAccount(token): Promise<Account> {
|
|||
})
|
||||
.then(res => {
|
||||
// When failed to authenticate user
|
||||
if (res.status !== 200 && res.status < 500) {
|
||||
if (res.status >= 400 && res.status < 500) {
|
||||
return signout();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue