mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-26 08:56:40 -05:00
docs: fix nuxt integration with useFetch (#1350)
useFetch needs an await attribute to be properly used
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user