diff --git a/docs/content/docs/basic-usage.mdx b/docs/content/docs/basic-usage.mdx index 92117c235b..3848680029 100644 --- a/docs/content/docs/basic-usage.mdx +++ b/docs/content/docs/basic-usage.mdx @@ -285,7 +285,7 @@ The server provides a `session` object that you can use to access the session da import { headers } from "next/headers"; const session = await auth.api.getSession({ - headers: headers() // you need to pass the headers object. + headers: await headers() // you need to pass the headers object. }) ```