OAuth2 Error: invalid success param url host must be one of localhost, *.appwrite.io, cloud.appwrite
- 0
- React Native
- Auth
- Functions
- Cloud

Hi everyone! I'm trying to implement Google OAuth2 login in a React Native app (using the Android simulator) with Appwrite Cloud, and I'm getting the following error when opening the auth URL
So i try to: To solve this, I created a custom Appwrite Function to act as a redirect handler. This function receives the userId and secret as payload and returns a 302 redirect to my app’s custom URL scheme
Despite this setup, I'm still getting the same error from Appwrite about the success URL. Am I missing a configuration step or is there a better way to handle OAuth2 in a React Native app using a custom URL scheme?
Thanks in advance!

we're working on improvements to React Native + OAuth2.
if you really want to go down this route of yours, make sure to add your function domain as a web platform for your project
Recommended threads
- 25 document limit
Unable to bypass the 25 document limit: https://github.com/Mooshieblob1/GenerateImagesPreview
- cant get custom domain to work with appw...
Hi, how do I get a custom domain to work? I have set database.vrtuhub.com on the appwrite console as a custom domain and did the cname record for it bit i still...
- [SOLVED] Consfusing Pricing
Why the pricing is showing me to 30 dollar while the original pricing which is 15 dollar per month,it is also including the add ons pricing,which i donot know w...
