From fbb8c32e4de7bde562009809d6044ad1d8bd52fd Mon Sep 17 00:00:00 2001 From: Felipe Hefler Date: Thu, 19 Sep 2024 16:38:13 +0200 Subject: [PATCH] doc: Added `await` to cookies().get() promise --- src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc index 30ce53e188..09e8c0b3ce 100644 --- a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc @@ -20,7 +20,7 @@ export async function createSessionClient() { .setEndpoint(process.env.NEXT_PUBLIC_APPWRITE_ENDPOINT) .setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT); - const session = cookies().get("my-custom-session"); + const session = await cookies().get("my-custom-session"); if (!session || !session.value) { throw new Error("No session"); }