Home > Software engineering >  localhost:3000 google sign in working but production sign in not working.. redirect mismatch issue
localhost:3000 google sign in working but production sign in not working.. redirect mismatch issue

Time:01-07

enter image description here

Access blocked: This app’s request is invalid

You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of this app, see error details. Error 400: redirect_uri_mismatch

CodePudding user response:

There is a mismatch between the redirect URI that is registered with an OAuth client and the one that is being used in the authorization request.

Make sure that the redirect URI you are using in the authorization request is the same as the one that is registered with the OAuth client.

CodePudding user response:

Redirect uri mismatch is one of the most common google oauth error messages.

The redirect uri is used to tell the authorization server where to return the authorization code back to.

This is configured over on google developer console for your project under the credentials themselves.

enter image description here

The redirect uri your application is sending from must exactly match one that you have listed in google cloud console.

If you click on error details it will tell you exactly what redirect uri you need to add in google developer console.

CodePudding user response:

This is the most common mistake that is often overlooked while deploying our applications. You should access your Google Developer console for this project and configure the redirect URL with the deployed URL and few tweaks. Hope this would solve your problem.

  • Related