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
- Using Appwrite along with Twilio - Deplo...
Stuck on Querying user document...
- Bypass Error When Creating Account With ...
Suppose user first uses email/pass for log in using xyz@gmail.com, few month later on decides to use google oauth2 with same xyz@gmail.com (or in reverse orde...
- No mails from Appwrite
Hello, Since severals days, i have a problem : i d'ont received any mails from Appwrite. I'm using the auth by mail and i don't any code so any mails from App...
