diff --git a/src/boot/axios.ts b/src/boot/axios.ts index 1d0e46d..4a35ffa 100644 --- a/src/boot/axios.ts +++ b/src/boot/axios.ts @@ -14,7 +14,7 @@ const api = axios.create({ baseURL: process.env.baseURL }); api.interceptors.request.use( async (request) => { LoadingBar.start(); - if (LocalStorage.getItem('token')) { + if (request.url?.search('github') === -1 && LocalStorage.getItem('token')) { request.headers.Authorization = `token ${LocalStorage.getItem('token') ?? ''}` } return Promise.resolve(request);