No longer sending extra data, renamed some properties

This commit is contained in:
Henry Jameson 2019-06-13 00:39:51 +03:00
parent 77511a5338
commit af75c6d1ea
4 changed files with 14 additions and 10 deletions

View file

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