Skip to content
Back

Error 400: redirect_uri_mismatch

  • 0
  • 2
  • Auth
  • Cloud
Developer
16 Dec, 2025, 12:47

Hi team,

Google OAuth was working fine with our Appwrite Cloud setup until yesterday. We did not change any configuration in Appwrite, Google Cloud, or our code.

Starting this morning, Google login began failing with a redirect_uri_mismatch error.

Observations:

A custom domain is configured.

The callback URL includes a dynamic flow ID.

This exact setup was working until yesterday

TL;DR
Error 400: redirect_uri_mismatch issue with Google OAuth affecting custom domain setup. Solution: Update redirect URI to original format.
16 Dec, 2025, 14:11

Google OAuth was working for the last 3 months with our custom domain setup. Starting this morning,now it only works when we register the redirect URI as:

https://nyc.cloud.appwrite.io/v1/account/sessions/oauth2/callback/google/{flowId}

Using the custom-domain redirect now fails with redirect_uri_mismatch, even though nothing was changed on our side.

https://<custom-domain>/v1/account/sessions/oauth2/callback/google/{flowId}

Could you please confirm if this behavior is expected?

26 Mar, 2026, 11:31

Hey <@1026418036195991633> we're facing the same problem now, did you find any solution?

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