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
- Subscription Problem
I'm making an app in RN with Expo and Appwrite and there's a functionality which allows the user to create a task/test (i'll be reffering to them collectively a...
- "Waiting" executions
For my React Native App, I have had no issues deploying a function in Appwrite & the executions either working or failing. Now I am getting status code - 0 & j...
- Auth Issue (maybe?)
Hi there, I'm relatively new to programming and am following a tutorial on youtube just to get an idea of how this all is suppossed to work. Now Im setting up t...