Nextjs 15 .1.4 - cookies() should be awaited before using its value
hi! getting this runtime error in my api route /api/auth/[kindeAuth] used
cookies().get('access_token')
cookies()
should be awaited before using its value.
The only code in my api route is:
import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server";
export const GET = handleAuth();
any insight?
I know the bassic patterns for params has changed with nextjs 15, wondering if the same is true for cookies?5 Replies
Hi @bcsproductions , what version of the NextJS SDK are you using?
hmmm. one sec @Bailey - Insider , checking
"@kinde-oss/kinde-auth-nextjs": "2.3.0",
"next": "^15.1.4",
"react": "^19.0.0",
Please update to the latest version of the NextJS SDK (2.4.6) as it has support for Next 15 🙂
you are my hero
ty!
No worries mate!