import type { UseFetchOptions } from 'nuxt/app';
export function useAuthFetch<T>(
url: string | (() => string),
options: UseFetchOptions<T> = {}
) {
return useFetch(url, {
...options,
$fetch: useNuxtApp().$authFetch,
})
}
import type { UseFetchOptions } from 'nuxt/app';
export function useAuthFetch<T>(
url: string | (() => string),
options: UseFetchOptions<T> = {}
) {
return useFetch(url, {
...options,
$fetch: useNuxtApp().$authFetch,
})
}