From 658e94380832fb27933fb7a73a92c0df0ef9520b Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 4 Jul 2021 18:47:10 +0200 Subject: [PATCH] testing --- src/components/GuestBookLogin.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/GuestBookLogin.vue b/src/components/GuestBookLogin.vue index c08644e..372676e 100644 --- a/src/components/GuestBookLogin.vue +++ b/src/components/GuestBookLogin.vue @@ -26,15 +26,16 @@ export default defineComponent({ const { $axios } = useContext() const headers = { - 'Access-Control-Allow-Origin': 'arthurdanjou.fr', - 'Content-Type': 'application/json' + 'Access-Control-Allow-Origin': 'dev.arthurdanjou.fr', + 'Content-Type': 'application/json', + 'Authorization': `Bearer ${process.env.API_TOKEN}` } const loginWithGithub = () => { - return $axios.get('/auth/github',{headers}) + $axios.get('/auth/github', {headers}) .then((response) => { - console.log(response) - }) + console.log(response) + }) } const loginWithGoogle = () => {