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
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- [SOLVED] React Native Appwrite SDK not w...
So I'm trying to generate a unique ID using the ID.unique() and its generating properly, but its saying its longer than 36 characters but it isnt.. ```typescri...