Move the API token getter to the globals mixin.
This commit is contained in:
parent
aa9204fcfe
commit
6717e00647
2 changed files with 8 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ export default {
|
|||
this.$nextTick(function() {
|
||||
axios.get(
|
||||
`${this.api_url}/me`,
|
||||
{ headers: { Authorization: `Bearer ${this.token}` } }
|
||||
{ headers: { Authorization: `Bearer ${this.api_token}` } }
|
||||
).then((response) => {
|
||||
if (response.error) {
|
||||
window.location.hash = ``;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue