How to resolve Google OAuth 2 authorization Error: redirect_uri_mismatch?

Published on April 20th, 2023
This image has an empty alt attribute; its file name is redirect-uri-mismatch.png

The redirect URI (where the response is returned to) has to be registered in the APIs console, and the error is indicating that you haven’t done that, or haven’t done it correctly.


Go to the console for your project and look under API Access. You should see your client ID & client secret there, along with a list of redirect URIs. If the URI you want isn’t listed, click edit settings and add the URI to the list.

Updating the google api console and that change being present can take some time. Generally only a few minutes but sometimes it seems longer.

Add Authorised redirect URIs

  1. Go to the official website of Google Developer Console.
  2. Select an existing project for whose credentials you added to the plugin settings page.
  3. Click on the menu icon and find APIs and services hover over this menu and you will see other options now click on Credentials.

Add Authorised redirect URIs
  1. Now click on your OAuth 2.0 Client ID.
  2. Check if your Authorised redirect URIs section has the same redirect URI from the Google API Settings of the plugin settings page or not.
  3. If it’s not there then copy the redirect URI from the plugin Google API Settings page and paste it into the project’s Authorised redirect URIs section.
  4. Save the settings.

It may take five minutes to a few hours for settings to take effect.

Tags

FAQs

post-5083

How do I resolve the Google OAuth 2 authorization Error: redirect_uri_mismatch?

You need to register the redirect URI in the Google APIs console under API Access.

Where can I find my client ID and client secret for Google OAuth 2 authorization?
How long does it take for changes made in the Google API console to take effect?
How do I add Authorised redirect URIs for Google OAuth 2 authorization?

Powered by WPFAQBlock.com

Last updated on July 7th, 2026

Leave a comment

Your email address will not be published. Required fields are marked *


Need help?

We're ready to help out & answer questions!
Leaf Right Img
Leaf Img