|
@ -71,11 +71,11 @@ const actions = { |
|
|
} |
|
|
} |
|
|
token(params).then(response => { |
|
|
token(params).then(response => { |
|
|
const { |
|
|
const { |
|
|
access_token, |
|
|
accessToken, |
|
|
token_type |
|
|
tokenType |
|
|
} = response |
|
|
} = response |
|
|
commit('SET_TOKEN', access_token) |
|
|
commit('SET_TOKEN', accessToken) |
|
|
setToken(token_type + ' ' + access_token) |
|
|
setToken(tokenType + ' ' + accessToken) |
|
|
resolve() |
|
|
resolve() |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
reject(error) |
|
|
reject(error) |
|
|