How to add interceptor to onFetch etc.. without creating my own useFetchWithaAuth or something
In nuxt2 with axios it was easy to extend it via Plugin or something.
but i have no clue how to do it in Nuxt 3
4 Replies
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
as @gimyboya said, the way is to create your own wrapper
useMyFetch
in the composables folder and it'll be ready to use in the entire applicationok thanks
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View