From b4e8894291ab667bcbaf693f87ba61dd11258da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Tue, 10 Oct 2023 22:22:45 -0400 Subject: [PATCH] fix(composables): remove jwt auth header from `useApiFetch` implementation it made things worse --- composables/useApiFetch.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composables/useApiFetch.ts b/composables/useApiFetch.ts index b94dfab..45ff7c8 100644 --- a/composables/useApiFetch.ts +++ b/composables/useApiFetch.ts @@ -2,13 +2,13 @@ import { StorageSerializers } from "@vueuse/core"; import { UseFetchOptions } from "nuxt/app"; const useApiFetch = async (url: string, options?: any) => { - const { token } = useAuth(); + // const { token } = useAuth(); let head = { ...(options?.headers || {}), }; - if (token.value) { - head.Authorization = token.value; - } + // if (token.value) { + // head.Authorization = token.value; + // } /* const cached = useSessionStorage(url, null, { serializer: StorageSerializers.object, });