rename mutations according to actual property names
This commit is contained in:
parent
f9c3aabea4
commit
acbeea59ff
2 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ const getAppSecret = async ({ store }) => {
|
||||||
return getOrCreateApp({ ...oauth, instance: instance.server, commit })
|
return getOrCreateApp({ ...oauth, instance: instance.server, commit })
|
||||||
.then((app) => getClientToken({ ...app, instance: instance.server }))
|
.then((app) => getClientToken({ ...app, instance: instance.server }))
|
||||||
.then((token) => {
|
.then((token) => {
|
||||||
commit('setClientToken', token.access_token)
|
commit('setAppToken', token.access_token)
|
||||||
commit('setBackendInteractor', backendInteractorService(store.getters.getToken()))
|
commit('setBackendInteractor', backendInteractorService(store.getters.getToken()))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ const oauth = {
|
||||||
state.clientId = clientId
|
state.clientId = clientId
|
||||||
state.clientSecret = clientSecret
|
state.clientSecret = clientSecret
|
||||||
},
|
},
|
||||||
setClientToken (state, token) {
|
setAppToken (state, token) {
|
||||||
state.appToken = token
|
state.appToken = token
|
||||||
},
|
},
|
||||||
setToken (state, token) {
|
setToken (state, token) {
|
||||||
|
|
Loading…
Reference in a new issue