Rank 2: Process
How can I fetch an UID based on an email, when the user is logged out? This is so users can recover their password?
In the documentation there is a request called “create password recovery” and “create password recovery confirmation”. The first request requires an email and userid. The second request requires the userid, secret, password, and passwordAgain.
For our current flow, users go to the forgot page link where they enter their email and are sent an email with a redirect link to create a new password. The redirect link prompts them to enter their new password.
The Appwrite documentation requests require a secret and a user Id. So my current question is figuring out how I can generate the userId when they are not logged in? The second question is if a secret is necessary for this process?