# Announcing 6-digit codes for email verification and password recovery

DevFeed: [Announcing 6-digit codes for email verification and password recovery](<https://devfeed.tech/articles/announcing-6-digit-codes-for-email-verification-and-password-recovery-95026.md>)

Original publisher: [Read original article](<https://appwrite.io/blog/post/announcing-verification-and-recovery-codes>)

Author: Atharva Deosthale

Published: 2026-10-22T00:00:00Z

Content type: release

Language: en

Sources: [Appwrite Blog](<https://devfeed.tech/sources/appwrite-blog.md>)

Topics: [password reset](<https://devfeed.tech/topics/password-reset.md>), [Appwrite](<https://devfeed.tech/topics/appwrite.md>), [passwords](<https://devfeed.tech/topics/passwords.md>), [email](<https://devfeed.tech/topics/email.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [android](<https://devfeed.tech/tags/android.md>), [announcements](<https://devfeed.tech/tags/announcements.md>), [app](<https://devfeed.tech/tags/app.md>), [apple](<https://devfeed.tech/tags/apple.md>), [apps](<https://devfeed.tech/tags/apps.md>), [auth](<https://devfeed.tech/tags/auth.md>), [breaches](<https://devfeed.tech/tags/breaches.md>), [client](<https://devfeed.tech/tags/client.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [code](<https://devfeed.tech/tags/code.md>), [data-breaches](<https://devfeed.tech/tags/data-breaches.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [desktop-apps](<https://devfeed.tech/tags/desktop-apps.md>), [email](<https://devfeed.tech/tags/email.md>), [email-verification](<https://devfeed.tech/tags/email-verification.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [password](<https://devfeed.tech/tags/password.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [redirect](<https://devfeed.tech/tags/redirect.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

Appwrite Auth can verify email and recover passwords with one-time 6-digit email codes, avoiding redirect pages and deep links. Signed-in users start verification with `createEmailVerificationOTP` and confirm with `updateEmailVerificationOTP`; recovery uses `createRecoveryOTP` with an email and `updateRecoveryOTP` with the returned user ID, code, and new password. Codes last 15 minutes, and any unexpired code remains usable even after another is sent. Wrong, expired, or used codes fail; unknown recovery emails receive no email but return a random user ID, so apps should show the same generic response and invalid-code message for relevant failures. Recovery does not sign the user in. Password policy checks still apply, and a rejected password does not consume the code. An optional random security phrase can be shown beside the code input to help users match the email to their request. Links remain suited to web apps; codes avoid redirect setup and are supported on Appwrite Cloud and self-hosted Appwrite 2.3+ across the listed SDKs.

## Source excerpt

Appwrite Auth can email a 6-digit code for email verification and password recovery, so mobile and desktop apps can handle both without a redirect page or a deep link.