Next Auth not working in production only
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
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
My repo is here : https://github.com/armandsalle/vote-design
The deployed code is here : https://vote-design.vercel.app/ (it's still WIP)
Try signing in with a different account. and in the URL the error is 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
My repo is here : https://github.com/armandsalle/vote-design
The deployed code is here : https://vote-design.vercel.app/ (it's still WIP)


Vote.design
