Enjoy a Flat 50% discount for a limited time only! Grab the Deal

How to resolve Google OAuth 2 authorization Error: redirect_uri_mismatch?

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.
Note: Updating the google api console and that change being present can take some time. Generally only a few minutes but sometimes it seems longer.

This image has an empty alt attribute; its file name is redirect-uri-mismatch.png

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.

  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.

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

Leave a comment

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

Our Plugins

WPSyncSheets for
WooCommerce

Get Started

WPSyncSheets for
Elementor

Get Started

WPSyncSheets for
Contact Form 7

Get Started

WPSyncSheets for
Gravity Forms

Get Started

WPSyncSheets for
WPForms

Get Started
Disclaimer: WPSyncSheets is an independent product by Creative Werk Designs. It does not represent WooCommerce, Elementor, Contact Form 7, Gravity Forms and WPForms websites.