Skip to content

Commit 27da4dc

Browse files
docs(auth): add missing provider function when creating the credential object (#40)
1 parent 59dafd3 commit 27da4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase-auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ PhoneAuthProvider.provider()
262262
.then((verificationId) => {
263263
// present ui to allow user to enter verificationCode
264264
// use the verificationCode entered by the user to create PhoneAuthCredentials
265-
const credential = PhoneAuthProvider.credential(verificationId, verificationCode);
265+
const credential = PhoneAuthProvider.provider().credential(verificationId, verificationCode);
266266
firebase().auth().signInWithCredential(credential);
267267
});
268268
```

0 commit comments

Comments
 (0)