Skip to content

Commit

Permalink
Fix access token usage in settings ui
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Jul 8, 2022
1 parent d41a40d commit 2f71e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/settings/ui/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit 2f71e3c

Please sign in to comment.