📚 Documentation: add await
to cookies().get()
as it returns a promise next.js-ssr-auth
demo
#1364
Open
2 tasks done
Labels
documentation
Improvements or additions to documentation
💭 Description
On step 3 of the documentation for Server-side authentication with Next.js on line 11 of the sample code:
website/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc
Line 23 in b605649
It might benefit from adding an
await
on this call, since the methodcookies().get()
returns a Promise (as per MDN docs).👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: