Getting adapter error with Next Auth and Convex in production.
My application works fine in development, and I am able to authenticate without any errors, but after deploying to vercel I get the following error
I have followed this (https://docs.convex.dev/production/hosting/vercel) to deploy my project and have set up the necessary environment variables, and also set up the callbacks for the specific providers, but I am yet getting this error. Can someone please help me out with this?
Using Convex with Vercel | Convex Developer Hub
Host your frontend on Vercel and your backend on Convex.
2 Replies
Can you look on your Convex dashboard what the actual error is? You can even search by the Request ID
This is the error I am getting,
This is probably the function returning the error,
But I have checked and I am passing in my environment variables a secret key as
CONVEX_AUTH_ADAPTER_SECRET
Oh God, it was such a dumb error. I forgot to add my env variables in the production. 🙂