Hey My auth with Github and Google works great on my dev env, but after deploying my project to Vercel, Next Auth stop working correctly. When I use a provider like Github, I get the error
Try signing in with a different account.
Try signing in with a different account.
and in the URL the error is
signin?error=Callback
signin?error=Callback
.
I created 2 apps for OAuth with Github, one for my dev env (redirecting to localhost) and one for the production (redirecting to my Vercel domain). I followed the Next Auth deployment, so I added a secret in my env vars and link it to the secret param in my config.
I don't understand why I'm getting this error only on production and not in development