fix logged out post-update
This commit is contained in:
parent
edb24da016
commit
d551b39859
@ -26,7 +26,9 @@ const oauth = {
|
||||
},
|
||||
getters: {
|
||||
getToken: state => () => {
|
||||
return state.userToken || state.appToken
|
||||
// state.token is userToken with older name, coming from persistent state
|
||||
// added here for smoother transition, otherwise user will be logged out
|
||||
return state.userToken || state.token || state.appToken
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user