Skip to content

Commit c9ceb45

Browse files
docs(auth): align phone SMS MFA flow docs with current APIs (#8722)
Previously the documentation suggested an outdated function call for the mfa phone vericationId get function
1 parent 8f66826 commit c9ceb45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/auth/multi-factor-auth.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ verification code to the user:
125125
const hint = resolver.hints[0];
126126
const sessionId = resolver.session;
127127

128-
new PhoneAuthProvider(getAuth())
129-
.verifyPhoneNumber(hint, sessionId) // triggers the message to the user
130-
.then(verificationId => setVerificationId(verificationId));
128+
const verificationId = await getAuth().verifyPhoneNumberWithMultiFactorInfo(hint, resolver.session); // Triggers message to user
131129
```
132130

133131
Once the user has entered the verification code you can create a multi-factor

0 commit comments

Comments
 (0)