updatePhoneNumber method

Future<void> updatePhoneNumber(
  1. PhoneAuthCredential phoneCredential
)

Updates the user's phone number.

A credential can be created by verifying a phone number via verifyPhoneNumber.

A FirebaseAuthException maybe thrown with the following error code:

  • invalid-verification-code:
  • Thrown if the verification code of the credential is not valid.
  • invalid-verification-id:
  • Thrown if the verification ID of the credential is not valid.

Implementation

Future<void> updatePhoneNumber(PhoneAuthCredential phoneCredential) async {
  await _delegate.updatePhoneNumber(phoneCredential);
}