fix logged out post-update

This commit is contained in:
Henry Jameson 2019-06-13 09:48:43 +03:00
parent edb24da016
commit d551b39859

View file

@ -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
}
}
}