TypeError: Cannot read properties of undefined (reading 'kindeAuth')

Hi - I've started getting this error on my production application. This is a new error when deployed to AWS using SST . I am using "@kinde-oss/kinde-auth-nextjs": "^2.4.6", When users click my login button I get a default Chrome error message Request URL: https://myURL.com/api/auth/login? 500 Internal Server Error I have not changed my application code: import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server"; export const GET = handleAuth(); Any ideas how to try and debug this?
1 Reply
Ages
Ages2w ago
Hi Ollie

Thank you for reaching out. This error typically indicates that the kindeAuth object is not properly initialized or accessible.
Can you confirm that the Node.js version running in your AWS environment is compatible with the @kinde-oss/kinde-auth-nextjs SDK ?

Did you find this page helpful?