signInWithPhoneNumber method

Future<ConfirmationResult> signInWithPhoneNumber(
  1. String phoneNumber
)

Phone Number Login

Web Platform support

Implementation

Future<ConfirmationResult> signInWithPhoneNumber(String phoneNumber) async {
  try {
    return firebaseAuth.signInWithPhoneNumber(phoneNumber);
  } catch (e) {
    throw FirebaseAuthenticationResult.error(
      errorMessage:
          'We could not send a verification code to your phone number. Please try again.',
      exceptionCode: e.toString(),
    );
  }
}