Next-auth /api/auth/callback/${ID} not working on

I’ve also opened a discussion in the next-auth repo but I’m running into this issue where POST’ing to the next-auth callback has different behavior on render vs production. In particular, there is something strange happening with the redirect afterwards where on prod, it tries to take me to a /signin page and locally, it goes through the actual next-auth provider’s authorize() function (where it is able to determine if a user exists). I’m not sure for the difference in behavior, my only hunch is that somehow deploying on PORT 10000 is messing with the way next-auth works, but I don’t know enough about this.

Wondering if anyone has experience with next-auth and can help!

Hi there,

I suggest checking out our docs on redirects and rewrites:

Hope that helps!


Render Support Engineer, MT (UTC-6)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.