Accept the error object in the auth expiration function
This commit is contained in:
parent
5ad272eccb
commit
319370a3ff
5 changed files with 16 additions and 12 deletions
|
|
@ -104,8 +104,8 @@ export default {
|
|||
this.data_populated = true;
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.status == 401) {
|
||||
this.auth_expired();
|
||||
if (err.response.status == 401) {
|
||||
return this.auth_expired(err);
|
||||
};
|
||||
});
|
||||
})
|
||||
|
|
|
|||
|
|
@ -136,8 +136,8 @@ export default {
|
|||
this.populate_playlist()
|
||||
})
|
||||
.catch((err) => {
|
||||
if (err.status == 401) {
|
||||
this.auth_expired();
|
||||
if (err.response.status == 401) {
|
||||
return this.auth_expired(err);
|
||||
};
|
||||
})
|
||||
},
|
||||
|
|
@ -161,8 +161,8 @@ export default {
|
|||
this.success = true;
|
||||
})
|
||||
.catch((err) => {
|
||||
if (err.status == 401) {
|
||||
this.auth_expired();
|
||||
if (err.response.status == 401) {
|
||||
return this.auth_expired(err);
|
||||
};
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue