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
- Many2Many loading, not receiving list
Hi everyone! Im having a bit of trouble while editing single rows in the DB. When selecting a value of my many2many it keeps loading, see screenshot. On some ...
- Creating a function on appwrite Cloud.
I am trying to create a function on Appwrite cloud. I go to the console. I hit : Create function I choose DART-3.5 I put a name for my function : NameFunction...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...