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
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
IsraelOrtuno
IsraelOrtunoβ€’3y ago
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 application
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server