docs: add reference docs for email and phone OTP recovery endpoints

Required by the spec generator (Specs task) which fails if the
description markdown file referenced in the SDK Method definition
does not exist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
harsh mahajan
2026-04-22 16:50:29 +05:30
parent edf06e3600
commit 4e3ed6dcbd
4 changed files with 4 additions and 0 deletions
@@ -0,0 +1 @@
Sends the user an email with a 6-digit OTP code for password reset. Unlike the link-based [POST /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) endpoint, no redirect URL is required, making this flow suitable for native and mobile apps. Use the OTP code along with the `userId` from the response to complete the process via the [PUT /account/recovery/email](https://appwrite.io/docs/references/cloud/client-web/account#updateEmailRecovery) endpoint. The OTP is valid for 15 minutes.
@@ -0,0 +1 @@
Sends the user an SMS with a 6-digit OTP code for password reset. Use the OTP code along with the `userId` from the response to complete the process via the [PUT /account/recovery/phone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneRecovery) endpoint. The OTP is valid for 15 minutes.
@@ -0,0 +1 @@
Use this endpoint to complete the user account password reset using the OTP code sent to the user's email address via the [POST /account/recovery/email](https://appwrite.io/docs/references/cloud/client-web/account#createEmailRecovery) endpoint. Provide the `userId`, the OTP `secret`, and the new `password` to reset the account password. The user's email address will also be marked as verified upon success.
@@ -0,0 +1 @@
Use this endpoint to complete the user account password reset using the OTP code sent to the user's phone number via the [POST /account/recovery/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneRecovery) endpoint. Provide the `userId`, the OTP `secret`, and the new `password` to reset the account password. The user's phone number will also be marked as verified upon success.