No longer sending extra data, renamed some properties
This commit is contained in:
parent
77511a5338
commit
af75c6d1ea
4 changed files with 14 additions and 10 deletions
|
@ -246,9 +246,9 @@ const setConfig = async ({ store }) => {
|
|||
|
||||
const checkOAuthToken = async ({ store }) => {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
if (store.state.oauth.token) {
|
||||
if (store.state.oauth.userToken) {
|
||||
try {
|
||||
await store.dispatch('loginUser', store.state.oauth.token)
|
||||
await store.dispatch('loginUser', store.state.oauth.userToken)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue