Google OAuth login Access blocked: This app’s request is invalid!

Hello, I created a branch in Vscode to test some changes in my app. In the local environment, everything is working perfectly. I created the branch within the Github project, and Vercel automatically detected it. When I try to preview it to test it, I need to log into the app using OAuth (Google) and that’s when the problem appears. Every time I get the message that the app is not authorized because the return URL is not registered in Google cloud, which is not true. This is the error: Access blocked: This app’s request is invalid. Error 400: redirect_uri_mismatch. The app in production is working normally, but no branch allows this OAuth login. I was always able to test it when my old programmer sent me the previews, but something is preventing this login. Does anyone have a solution for this? Thanks.

Next.js

Hey, Mallc! Did you manage to find a solution for this?

Whilst I look into it, I wanted to share another related thread. In case y’all can help each other out :slight_smile:

Cross-posting, in case it’s helpful:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.