mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
@@ -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.
|
||||
Reference in New Issue
Block a user