diff --git a/services/settings/ui/store/index.js b/services/settings/ui/store/index.js index c1e293104de..8828e534542 100644 --- a/services/settings/ui/store/index.js +++ b/services/settings/ui/store/index.js @@ -115,7 +115,7 @@ export default { function injectAuthToken (rootGetters) { axios.interceptors.request.use(config => { if (typeof config.headers.Authorization === 'undefined') { - const token = rootGetters.user.token + const token = rootGetters['runtime/auth/accessToken'] if (token) { config.headers.Authorization = `Bearer ${token}` }