Log the user out if the token could not be renewed
This commit is contained in:
parent
a6f69ff459
commit
51bbad9794
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ export default {
|
|||
.catch(e => {
|
||||
// eslint-disable-next-line
|
||||
console.log('Error renewing token: ', e)
|
||||
ctx.dispatch('logout')
|
||||
})
|
||||
},
|
||||
logout(ctx) {
|
||||
|
|
Loading…
Reference in a new issue