From 26b52dd38f7a92c201670372f37d2e08adbb88df Mon Sep 17 00:00:00 2001 From: Md Mazedul Islam Khan Date: Tue, 22 Oct 2024 23:43:32 +0200 Subject: [PATCH] docs: Use `await` in the `next/headers` to prevent errors (#296) --- docs/content/docs/basic-usage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. }) ```