From acbeea59ff196c16e7992c80e56a638ce3a623b6 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 13 Jun 2019 10:11:17 +0300 Subject: [PATCH] rename mutations according to actual property names --- src/boot/after_store.js | 2 +- src/modules/oauth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 7661dbe6..c271d413 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -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())) }) } diff --git a/src/modules/oauth.js b/src/modules/oauth.js index c87e4777..11cb10fe 100644 --- a/src/modules/oauth.js +++ b/src/modules/oauth.js @@ -17,7 +17,7 @@ const oauth = { state.clientId = clientId state.clientSecret = clientSecret }, - setClientToken (state, token) { + setAppToken (state, token) { state.appToken = token }, setToken (state, token) {