fix logged out post-update

skip-thread-containment
Henry Jameson 5 years ago
parent edb24da016
commit d551b39859

@ -26,7 +26,9 @@ const oauth = {
}, },
getters: { getters: {
getToken: state => () => { 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…
Cancel
Save