diff --git a/components/Navbar.vue b/components/Navbar.vue index ab977ac..049c7e0 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -202,7 +202,7 @@ export default { this.server = ( await this.$axios.$get('/dashboard/servers?id=' + this.$route.query.id, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }) ).data diff --git a/pages/dashboard/index.vue b/pages/dashboard/index.vue index c33dfc1..7a2709b 100644 --- a/pages/dashboard/index.vue +++ b/pages/dashboard/index.vue @@ -480,13 +480,13 @@ export default { socket.emit('push:load', { guild: this.$route.query.id, - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }) this.alerts.interval = setInterval(() => { socket.emit('push:check', { guild: this.$route.query.id, - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), already: this.alerts.contents.map(alert => alert.id), }) }, 5000) @@ -495,7 +495,7 @@ export default { this.summary = ( await this.$axios.$get('/dashboard/summary?id=' + this.$route.query.id, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }) ).data diff --git a/pages/dashboard/invite.vue b/pages/dashboard/invite.vue index 7f4f7ec..57ccb77 100644 --- a/pages/dashboard/invite.vue +++ b/pages/dashboard/invite.vue @@ -344,7 +344,7 @@ export default { const settings = ( await this.$axios.$get('/dashboard/invite?id=' + this.$route.query.id, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }) ).data @@ -439,7 +439,7 @@ export default { }, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }, ) diff --git a/pages/dashboard/members.vue b/pages/dashboard/members.vue index 9efbaa9..63b5d13 100644 --- a/pages/dashboard/members.vue +++ b/pages/dashboard/members.vue @@ -189,7 +189,7 @@ export default { const memberList = ( await this.$axios.$get('/dashboard/members?id=' + this.$route.query.id, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }) ).data @@ -238,7 +238,7 @@ export default { }, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }, ) diff --git a/pages/dashboard/verify.vue b/pages/dashboard/verify.vue index 2e25987..1cf2c50 100644 --- a/pages/dashboard/verify.vue +++ b/pages/dashboard/verify.vue @@ -141,7 +141,7 @@ export default { const settings = ( await this.$axios.$get('/dashboard/verify?id=' + this.$route.query.id, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }) ).data @@ -192,7 +192,7 @@ export default { }, { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }, ) diff --git a/pages/servers.vue b/pages/servers.vue index 48c0af4..f99da86 100644 --- a/pages/servers.vue +++ b/pages/servers.vue @@ -179,7 +179,7 @@ export default { const serverList = ( await this.$axios.$get('/dashboard/servers', { headers: { - access_token: localStorage.getItem('access_token'), + Authorization: "Bearer " + localStorage.getItem('access_token'), }, }) ).data