0

At localhost, my website can use account Google to log in.

When i upload website to server I get this error :

An error occurred: "Error: redirect_uri_mismatch"

Abdul Rehman Sayed
  • 6,532
  • 7
  • 45
  • 74

1 Answers1

0

That is because the redirect URI that you send in the authorization request (in the value of the redirect_uri parameter) is not registered for your client in the Google API Console. See: Google OAuth 2 authorization - Error: redirect_uri_mismatch

Community
  • 1
  • 1
Hans Z.
  • 50,496
  • 12
  • 102
  • 115