Next.js Discord

Discord Forum

Authentication Issue with Google OAuth in Vercel Production

Unanswered
khan786 posted this in #help-forum
Open in Discord
I deployed my Next.js site on Vercel. For authentication, I am using Google OAuth, which works fine on localhost in the local environment, but it’s not working in production on Vercel. When I click the Register/Login button, it signs in and displays the profile picture, but when I try to click the Add Properties button, it redirects me to the Sign In with Google button repeatedly. I have registered the entry in the Google console as https://property-pulse-seven-ochre.vercel.app. My domain name is https://property-pulse-seven-ochre.vercel.app, and I am facing issues with this setup.

0 Replies