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