Setup Sign in with Google (localhost)

Hi,

Need help setting up hybridauth using Google sign in.

After following the help file instructions, I keep getting the error: Error: redirect_uri_mismatch The redirect URI in the request, xyz, does not match the ones authorized for the OAuth client.

what could be the problem?

From https://hybridauth.github.io/developer-ref-migrating.html:

Note that Hybridauth 2.x uses hauth.done={providerId} in OAuth 2.0 Redirect Urls to determine which provider to authenticate.
In Hybridauth 3.x, it’s not required anymore.

you may try change your redirect URL in Google to:

/login.php?provider=Google

Thank you.
This was the solution.