Skip to content

Commit ed0f95a

Browse files
mare95markopoinz
andauthored
docs(auth): correct sign in with 2FA example docs (#8565)
Co-authored-by: Marko Petricic <[email protected]>
1 parent a3cc4de commit ed0f95a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/auth/multi-factor-auth.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ signInWithEmailAndPassword(getAuth(), email, password)
166166
// Currently only phone based factors are supported
167167
if (resolver.hints[0].factorId === PhoneMultiFactorGenerator.FACTOR_ID) {
168168
const hint = resolver.hints[0];
169-
const sessionId = resolver.session;
170169

171170
new PhoneAuthProvider(getAuth())
172-
.verifyPhoneNumber(hint, sessionId) // triggers the message to the user
171+
.verifyPhoneNumber({ multiFactorHint: hint, session: resolver.session }) // triggers the message to the user
173172
.then(verificationId => setVerificationId(verificationId));
174173

175174
// Request verificationCode from user

0 commit comments

Comments
 (0)