Next Auth Production Issue
I have a web app using session auth of NextAuth for authentication. It works fine locally, however, when deployed to Vercel, it errors out when logging in via Email Provider or Credentials.
I am getting this weird error:
In the console:
In network tab:
StatusCode: 504
Request: Post
RequestURL: https://<myappname>.vercel.app/api/auth/signin/email?
Payload:
Response: An error occurred with your deployment FUNCTION_INVOCATION_TIMEOUT
1 Reply
Turns out I needed to put access to everyone on mongodb