Back

Error 400 Invalid success param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io,

  • 0
  • React Native
  • Auth
Muhammad Abdullah Zahid
25 Dec, 2024, 13:27

Error 400 Invalid success param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io, *

Type: general_argument_invalid

getting this issue for react native app in build. I also created a web platform on it in which i passed * for domain but getting this issue on auth redirecting.

const redirectUri = Linking.createURL("/"); const response = await account.createOAuth2Token( OAuthProvider.Google, redirectUri );

TL;DR
Error 400 is due to an invalid success param in the URL host. The redirect URI must be one of the following: localhost, cloud.appwrite.io, appwrite.io. For a custom domain, add it as a Platform in your project settings. In the React Native app, adjust the redirectURI to a valid host mentioned earlier.
Darshan Pandya
25 Dec, 2024, 13:27

Redirect uri should be either one of those mentioned. If you need to use a custom domain, add it as a Platform in your project.

Muhammad Abdullah Zahid
25 Dec, 2024, 13:32

I created platform but it's still not working

Darshan Pandya
25 Dec, 2024, 13:40

what url did you use?

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