Callback for provider type credentials not supported

Hi, I am trying to set up login functionality with a username and password using NextAuth on my site. Everything works fine locally, but unfortunately, when deployed to Netlify, I encounter the following error when trying to log in:
Error: Callback for provider type credentials not supported

Does this mean I can’t use CredentialsProvider on Netlify?

There are no build errors, and all the environment variables for the site are correctly set.

Do you have a reproduction for us to try?

I found the problem: the database storing users and passwords was not allowing connections from Netlify.

So everything should work fine when db connections are configured, but there no problems on Netlify side.

All good. :wink: