rename mutations according to actual property names

This commit is contained in:
Henry Jameson 2019-06-13 10:11:17 +03:00
parent f9c3aabea4
commit acbeea59ff
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ const getAppSecret = async ({ store }) => {
return getOrCreateApp({ ...oauth, instance: instance.server, commit })
.then((app) => getClientToken({ ...app, instance: instance.server }))
.then((token) => {
commit('setClientToken', token.access_token)
commit('setAppToken', token.access_token)
commit('setBackendInteractor', backendInteractorService(store.getters.getToken()))
})
}

View File

@ -17,7 +17,7 @@ const oauth = {
state.clientId = clientId
state.clientSecret = clientSecret
},
setClientToken (state, token) {
setAppToken (state, token) {
state.appToken = token
},
setToken (state, token) {