No response from API in Next.js
I’m having trouble with the API:
I added the OpenAPI plugin and tried calling the API, for example via /api/auth/reference, but I don’t get any response. The same issue occurs when I try to register a user. The requests keep loading for a long time until I eventually get an Internal Server Error.
Someone else seems to have the same problem: https://github.com/better-auth/better-auth/issues/1394
route.ts
in api/auth/[...all]
auth.ts
Has anyone ever had this problem and already has a solution?GitHub
No Response from API in Next.js Despite Correct Payload and Headers...
Is this suited for github? Yes, this is suited for github To Reproduce Develop a NestJS backend and integrate it with BetterAuth. Set up BetterAuth in Next.js according to the documentation and con...
2 Replies