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.