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!