1
0
mirror of https://akkoma.dev/lamp/akkoma-fe.git synced 2025-08-12 21:31:52 -04:00

fix logged out post-update

This commit is contained in:
Henry Jameson 2019-06-13 09:48:43 +03:00
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
}
}
}