Link With Phone Number
Use the linkWithPhoneNumber method to link a new phone number credential to an existing user account.
Method
ConfirmationResult confirmationResult = await FirebaseApp.instance.linkWithPhoneNumber(phoneNumber, applicationVerifier);Parameters
- phoneNumber ( - String): The phone number to be linked to the user account.
- applicationVerifier ( - ApplicationVerifier): A verifier used to ensure the request is valid, typically reCAPTCHA.
Return
- ConfirmationResult: Returns a - ConfirmationResultobject, which can be used to confirm the phone number by entering the verification code.
This method allows linking a phone number credential to an existing Firebase user, adding an additional sign-in method for the user.
Last updated
