'Firebase doesnt verify otp when linking email with phone number
I noticed that firebase doesnt confirm the top I put in is right when I am linking my phone number to the account I have created with email and address.The code below is the at the point when I have already signed up with the email and password and already received the otp using phoneProvider.verifyPhoneNumber. I relieve that with code below, firebase doesn't verify whether the otp is correct or not
const authCredential = PhoneAuthProvider.credential(verificationId, otpNumber);
linkWithCredential(auth.currentUser as User, authCredential)
If I follow the method in firebase documentation in relation to phone number authentication, it creates a new account with the phone number
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
