feat(auth): add optional email to signup form

This commit is contained in:
2026-06-23 02:14:30 +03:30
parent 22b500dba5
commit edcd92f70d
6 changed files with 20 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ export const registerWithOtp = async (
re_password: string,
first_name = "",
last_name = "",
email = "",
) => {
const normalizedMobile = normalizeDigits(mobile)
const normalizedCode = normalizeDigits(code)
@@ -75,6 +76,7 @@ export const registerWithOtp = async (
re_password,
first_name,
last_name,
email,
}),
})
if (!response.ok) throw await buildApiError(response)