From a35963d1f71e5abc4b5a557f345a9f0afcd6feb4 Mon Sep 17 00:00:00 2001 From: Alejandro Gomez <32989875+AlejandroGomezE@users.noreply.github.com> Date: Fri, 10 Oct 2025 09:54:01 -0600 Subject: [PATCH] Update multi-factor-auth.md Description This PR aims to provide more clarity to the MFA phone sign in flow. Related issues: The current documentation shows an outdated function call for the mfa phone vericationId get funcion. --- docs/auth/multi-factor-auth.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/auth/multi-factor-auth.md b/docs/auth/multi-factor-auth.md index a6c6face8d..aec375e442 100644 --- a/docs/auth/multi-factor-auth.md +++ b/docs/auth/multi-factor-auth.md @@ -125,9 +125,7 @@ verification code to the user: const hint = resolver.hints[0]; const sessionId = resolver.session; -new PhoneAuthProvider(getAuth()) - .verifyPhoneNumber(hint, sessionId) // triggers the message to the user - .then(verificationId => setVerificationId(verificationId)); +const verificationId = await getAuth().verifyPhoneNumberWithMultiFactorInfo(hint, resolver.session); // Triggers message to user ``` Once the user has entered the verification code you can create a multi-factor