linkWithPhoneNumber method

Future<ConfirmationResult> linkWithPhoneNumber(
  1. String phoneNumber, [
  2. RecaptchaVerifier? applicationVerifier
])

Link the current user with the given phone number.

Implementation

Future<ConfirmationResult> linkWithPhoneNumber(String phoneNumber,
    [RecaptchaVerifier? applicationVerifier]) async {
  try {
    return ConfirmationResult(
      _auth,
      await _auth._api.smsAuth.signInWithPhoneNumber(
        phoneNumber,
        verifier: applicationVerifier,
      ),
    );
  } catch (e) {
    rethrow;
  }
}