logInWithPhoneWeb method

Future<void> logInWithPhoneWeb(
  1. String phoneNumber
)

Starts the Sign In with Phone Flow on Web platform

Throws a LogInWithGoogleFailure if an exception occurs.

Implementation

Future<void> logInWithPhoneWeb(String phoneNumber) async {
  final confirmationResult = await _firebaseAuth.signInWithPhoneNumber(
    phoneNumber,
    // RecaptchaVerifier(
    //   auth: _firebaseAuthPlatform,
    //   container: 'recaptcha',
    //   size: RecaptchaVerifierSize.compact,
    //   theme: RecaptchaVerifierTheme.dark,
    //   onSuccess: () => log('reCAPTCHA Completed!'),
    //   onError: (FirebaseAuthException error) =>
    //       log(error.message ?? 'Unknown Error'),
    //   onExpired: () => log('reCAPTCHA Expired!'),
    // )
  );

  _confirmationResult = confirmationResult;
}