Have catch blocks call the auth expire function
This commit is contained in:
parent
c9c1e57187
commit
ae5a697de5
4 changed files with 18 additions and 14 deletions
|
|
@ -182,10 +182,9 @@ export default {
|
|||
this.$emit(`user_id`, data.id);
|
||||
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
window.location.hash = ``;
|
||||
window.location.href = `${this.auth_redirect}?error=${encodeURI(err)}`;;
|
||||
return
|
||||
if (err.status == 401) {
|
||||
this.auth_expired();
|
||||
};
|
||||
})
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue