It sounds like you are getting a redirect_uri_mismatch error when trying to integrate Google Social Login into your WordPress site. This error typically means there is a mismatch between the redirect URI you have configured on the Google Developer Console and the one you have set in the WordPress plugin settings.
Here are some things to check that may resolve this:
– Double check that the Authorized redirect URI you have set in the Credentials section on the Google Cloud Platform matches exactly with what you have set in the WordPress plugin settings. These must match exactly.
- Make sure there are no extra slashes or missing slashes in either URI. Something as minor as an extra trailing slash can trigger this error.
- Verify that you are using the correct Client ID from your Google app credentials in the WordPress plugin configuration.
- Try clearing cookies/cache and retesting the integration. Sometimes this error persists due to invalid cached redirects.
- Create a new Google Client ID just for this site if you have used the current one on other projects before. Restrict the URIs only to this domain.
If still facing issues, regenerate your Google Client ID and authorize localhost explicitly in the Google Console as a redirect URI for testing purposes.