Skip to content

Instantly share code, notes, and snippets.

@EhsanHadid
Last active February 23, 2023 09:43
Show Gist options
  • Save EhsanHadid/17358bb6a6b9f7f15b32494106f9d91b to your computer and use it in GitHub Desktop.
Save EhsanHadid/17358bb6a6b9f7f15b32494106f9d91b to your computer and use it in GitHub Desktop.
verify phone number
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