Back

OAuth Redirect URI Mismatch

  • 0
  • Web
  • Cloud
кеni
23 May, 2024, 15:24

When I try to run the following I'm getting an error from Google:

TypeScript
    account.createOAuth2Session(
      "google",
      "http://localhost:5175",
      "http://localhost:5175/failed"
    )
  }

Any idea what I'm missing or how I can debug? My app is currently being verified by Google (i.e it's not in testing mode).

TL;DR
Developers are facing an OAuth Redirect URI Mismatch error when trying to run Google sign-in due to incorrect URI configuration. To resolve this, ensure that the redirect URIs in the Google Cloud Console match the ones used in the code (both http://localhost:5175 and http://localhost:5175/failed). Additionally, verify that your app status in Google is set to testing mode during the verification process.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more