Invalid `url` param: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io
- 0
- React Native

Hello everyone, new to appwrite here. so I'm trying to implement email verification, I'm creating a mobile app with react native, but I don't know what to pass to the account.createVerification() function. I don't really know what needs to be there, is it a path to the home screen of my app?

it's supposed to take the user to something you've written that can pull out the secret and user id from the URL.
You can create a standalone web page. Or, for react native, you can implement deep linking

Here is an exemple
await this.account.createVerification(
`${process.env.NEXT_PUBLIC_APP_URL}/register/verification`
);

You should get an email like that. So bassicaly ur user will be redirected to this route

Thanks for the clarification, but I just have a question, what if I want to redirect the user to a jsx page in my project? When I looked at your code, I assumed that the path you wrote there does just that. For context, I don't think I'm using Next.js (I honestly don't even know what it does, I'm a beginner app developer)

It does not matter if what framework or library you use here. You just need to redirect to a frontend route. So create a route using the router system of your app and redirect to it. Then youll have to capture the userId and secret to verify is they are correct

Hello everyone, I'm deeply moved by your efforts in helping me, but I just don't seem to know where to go from here, it displays on my error log this message: "Invalid 'url' param: URL host mush be one of: localhost, cloud.appwrite.io, appwrite.io", as you can see, I have an IP in the URL, which might be making this issue, I actually go this IP from appwrite console -> overview -> platforms -> web -> hostname I can't find any tutorials for expo-react-native related to this issue, can someone please help

Your localhost seems to be at a specific port?

If so, you will need to add localhost:your port to the appwrite console in the platforms section

this gives me an error

The IP should not be there I think?

You should enter the IP or localhost:port
Recommended threads
- Invalid 'success' param error (React Nat...
I am trying to set up a "Sign in with Google" button using OAuth2. While I was successful in getting the button to work for web, when I try with mobile I get t...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
