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
Yoshify
Yoshify•7d ago
Hi @bcsproductions , what version of the NextJS SDK are you using?
bcsproductions
bcsproductionsOP•6d ago
hmmm. one sec @Bailey - Insider , checking "@kinde-oss/kinde-auth-nextjs": "2.3.0", "next": "^15.1.4", "react": "^19.0.0",
Yoshify
Yoshify•6d ago
Please update to the latest version of the NextJS SDK (2.4.6) as it has support for Next 15 🙂
bcsproductions
bcsproductionsOP•6d ago
you are my hero ty!
Yoshify
Yoshify•6d ago
No worries mate!

Did you find this page helpful?