Hi, I'm using Next.js 14/app router. When I wrap my app with the AuthProvider, I get a 500 error in the console. Is this expected? By the way, I'm also using withAuth with the Next.js middleware. Do I still need to wrap my app with the AuthProvider? Also, I noticed that most videos about Kinde never mention the AuthProvider component.
XHRGET http://localhost:3000/api/auth/setup [HTTP/1.1 500 Internal Server Error 133ms]
XHRGET http://localhost:3000/api/auth/setup [HTTP/1.1 500 Internal Server Error 133ms]