bcsproductions
KKinde
•Created by bcsproductions on 1/22/2025 in #💻┃support
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?8 replies