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"); }