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
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Hi Appwrite Support Team,My project has ...
Details: Project ID: 69a69f6f00113ed0e8e4 Region: SFO (sfo.cloud.appwrite.io) Error Response: Affected: ALL endpoints — Functions, Databases, Storage, Health, ...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...