forked from AkkomaGang/akkoma-fe
fix logged out post-update
This commit is contained in:
parent
edb24da016
commit
d551b39859
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue