I've deployed my next.js application in vercel and I use Next-auth for authentication. In my app user can signin with google OAuth and it works perfectly locally but in production the user is not able to signin
When i check the logs of my deployment this is what i see
Here the cache says MISS
I found this issue in github and tried to override the header both in next.config.js
and in the auth handler but the bug is still not fixed.
what am i missing out? here is the link to my project repository: https://github.com/alphawhiskey03/bmi-api
in development we put next auth url in the .env file
make sure to put this in production to your new domain