|
@@ -4,7 +4,6 @@ export function updateUser(state, newInfo) {
|
|
|
export function updateAxiosAuthorization (state, accessToken) {
|
|
export function updateAxiosAuthorization (state, accessToken) {
|
|
|
const tokenType = 'Bearer'
|
|
const tokenType = 'Bearer'
|
|
|
const token = accessToken ? (tokenType + ' ' + accessToken) : null
|
|
const token = accessToken ? (tokenType + ' ' + accessToken) : null
|
|
|
- debugger
|
|
|
|
|
this.$accessToken = accessToken
|
|
this.$accessToken = accessToken
|
|
|
if (this.$axios) {
|
|
if (this.$axios) {
|
|
|
this.$axios.defaults.headers.common.Authorization = token
|
|
this.$axios.defaults.headers.common.Authorization = token
|