Last active
February 23, 2023 09:43
-
-
Save EhsanHadid/17358bb6a6b9f7f15b32494106f9d91b to your computer and use it in GitHub Desktop.
verify phone number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const verifyCode = ({ code }) => { | |
const credential = PhoneAuthProvider.credential(verificationId, code); | |
signInWithCredential(auth, credential).then((userCredential) => { | |
console.log(userCredential); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment