diff --git a/README.md b/README.md index 03952514..a856eb24 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,22 @@ export default defineNitroPlugin(() => { }) ``` +## Server-Side Rendering + +You can make authenticated requests both from the client and the server. However, you must use `useRequestFetch()` to make authenticated requests during SSR if you are not using `useFetch()` + +```vue + +``` + +> There's [an open issue](https://github.com/nuxt/nuxt/issues/24813) to include credentials in `$fetch` in Nuxt. + ## Configuration We leverage `runtimeConfig.session` to give the defaults option to [h3 `useSession`](https://h3.unjs.io/examples/handle-session).