Bach
October 30, 2024, 6:46pm
1
Hi team, I want to call out a breaking change caused by NextJS 15, which is that getSession
and touchSession
no longer work as expected.
Error: Route "some/route" used `cookies().getAll()`. `cookies()` should be awaited before using its value.
The cookies()
function call must be awaited .
I believe this will impact everyone who uses NextJS 15.
The bug is probably in your @auth0/nextjs-auth0
package.
4 Likes
ionut
November 7, 2024, 4:28pm
2
I’m having the same issue with getAccessToken()
Hi @Bach !
Thank you for calling this out! We plan to address this in the v4 release of the Next.js SDK. The beta version of v4 (with Next 15 support) is out. Please see here: @auth0/nextjs-auth0 - npm
Please also see this relevant GitHub issue: Support async API required by Next 15 · Issue #1779 · auth0/nextjs-auth0 · GitHub
Please let me know if you have any additional questions!
Best,
Mary Beth
system
Closed
November 21, 2024, 8:54pm
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.