0
0
Fork 0

Move the API token getter to the globals mixin.

This commit is contained in:
Tyler-A 2020-08-09 00:57:04 -06:00
parent aa9204fcfe
commit 6717e00647
2 changed files with 8 additions and 2 deletions

View file

@ -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 = ``;