Skip to content
Back

My reset-password link not accepted with react-native-appwrite

  • 0
  • React Native
  • Auth
Moussa
16 Feb, 2025, 21:50

Hi ! I am using react-native-appwrite:0.4.0 to write password-reset functionality. However, whenever I call the account.createRecovery(email, "http://mysocietyapp.co/reset-password"), I get an error stating: Invalid 'url' param: URL host must be one of: localhost, cloud-appwite.io, appwrite.io, *.appwrite.io . This makes no sense. How am I supposed to handle password reset if I cannot deep link to the application, neither can I make my own reset-password page on my server.

TL;DR
Issue: Error message states restricted URL hosts when trying to create password reset link with react-native-appwrite. Solution: This error occurs due to restricted URL hosts in appwrite. To resolve, host the reset-password page on an accepted host like localhost, cloud-appwrite.io, appwrite.io, or *.appwrite.io.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more