#reset password on expo app

6 messages · Page 1 of 1 (latest)

unkempt obsidian
#

Hi guys, has anyone here implemented the reset password functionality on a expo app?

I have a two questions about it.

  1. Do I HAVE to have a domain/webpage to host the link that will redirect the user to the app or execute the password reset function?

If so how is this implemented, could it be the same server as the appwrite server is hosted? (my company uses self hosted appwrite)

Second question:
2. Do you guys recommend any course specifically for expo app and appwrite?

I appreciate any help!

naive terrace
# unkempt obsidian Hi guys, has anyone here implemented the reset password functionality on a expo ...

password reset:
There are 2 major way:

  1. Host a site: You can implement password reset method directly in that site
    or you can use that site for universal/app linking.
    https://docs.expo.dev/linking/android-app-links/
    https://docs.expo.dev/linking/ios-universal-links/

  2. Use a cloud function: Its a bit hassle
    https://bishwajeet-parhi.medium.com/i-built-an-auth-template-powered-by-react-native-and-appwrite-4a0b7ee90ba6
    but this article talks how you can do that.

as for courses,
appwrite colaborated with JSmastery , so you can find 3-4 videos abour Expo and Appwrite.
and also check appwrite's yt channel. There are some useful videos.

Expo Documentation

Learn how to configure Android App Links to open your Expo app from a standard web URL.

Expo Documentation

Learn how to configure iOS Universal Links to open your Expo app from a standard web URL.

unkempt obsidian
#

Thanks a lot @naive terrace

If I'm using self hosted appwrite does the site has to be the same as the server the appwrite is hosted? I can't seem to be able add a new domain and verify it... I tested on a friends website and everything was setup right but I couldn't verify the domain with appwrite...

naive terrace
#

I dont think there is a need to verify.
Just host the assetLink file should be enough.
I think there is a page from google which checks if your assetLink file was hosted correctly.

unkempt obsidian
#

I meant verify the domain on appwrite after adding it on appwrite explaining the following screenshots:

  1. First I get this error when I try to add a domain, but it adds anyway.
  2. Then I can't verify it later where it shows value as localhost for some reason.
  3. Then when trying to use the domain I added as the recovery password Url I get the following error

I think that's the missing piece of this problem. Seems that the only 2 domains that AppWrite accepts are localhost (which I could successfully do my reset password) or the url of the appwrite server itself.

Do you think it's possible or even recommended to use the appwrite new "sites" functionality for this?

naive terrace
#

This is a separate problem
Try creating another thread.
I dont have any knowledge about this.