---
title: "Use Custom Fetch Composable"
description: "This example shows a convenient wrapper for the useFetch composable from nuxt. It allows you to customize the fetch request with default values and user authentication token."
canonical_url: "https://nuxt.com/docs/4.x/examples/advanced/use-custom-fetch-composable"
---
# Use Custom Fetch Composable

> This example shows a convenient wrapper for the useFetch composable from nuxt. It allows you to customize the fetch request with default values and user authentication token.

<code-explorer default-value="plugins/customFetch.ts" path="examples/advanced/use-custom-fetch-composable">



</code-explorer>

<browser src="https://use-custom-fetch-composable.example.nuxt.space">



</browser>

<read-more to="https://nuxt.com/docs/guide/recipes/custom-usefetch">



</read-more>

---

- [Source](https://github.com/nuxt/examples/tree/main/examples/advanced/use-custom-fetch-composable)


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
