docs: fix nuxt integration with useFetch (#1350)

useFetch needs an await attribute to be properly used
This commit is contained in:
Hysterelius
2025-02-05 05:17:07 +11:00
committed by GitHub
parent 547677c843
commit 7ade31a1b5

View File

@@ -97,7 +97,7 @@ If you are using Nuxt with SSR, you can use the `useSession` function in the `se
<script setup lang="ts">
import { authClient } from "~/lib/auth-client";
const { data: session } = authClient.useSession(useFetch);
const { data: session } = await authClient.useSession(useFetch);
</script>
<template>