Prefer SMS for auth OTP when email mailer is not configured.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 01:22:55 +03:30
co-authored by Cursor
parent c620d1d6d4
commit 78511a7d53
4 changed files with 83 additions and 29 deletions
+2
View File
@@ -96,6 +96,8 @@ export interface RegisterChallengeResponse {
expiresInSeconds: number;
maskedEmail?: string;
maskedMobile?: string;
/** وقتی سرویس ایمیل خاموش است false — فقط OTP موبایل لازم است */
emailOtpRequired?: boolean;
devEmailCode?: string;
devMobileCode?: string;
}