signInByPhone<T extends Auth<AuthKeys>> method

Future<AuthResponse<T>> signInByPhone<T extends Auth<AuthKeys>>(
  1. PhoneAuthenticator authenticator, {
  2. PhoneMultiFactorInfo? multiFactorInfo,
  3. MultiFactorSession? multiFactorSession,
  4. Duration timeout = const Duration(minutes: 2),
  5. void onComplete(
    1. PhoneAuthCredential credential
    )?,
  6. void onFailed(
    1. FirebaseAuthException exception
    )?,
  7. void onCodeSent(
    1. String verId,
    2. int? forceResendingToken
    )?,
  8. void onCodeAutoRetrievalTimeout(
    1. String verId
    )?,
})

Implementation

Future<AuthResponse<T>> signInByPhone<T extends Auth>(
  PhoneAuthenticator authenticator, {
  PhoneMultiFactorInfo? multiFactorInfo,
  MultiFactorSession? multiFactorSession,
  Duration timeout = const Duration(minutes: 2),
  void Function(PhoneAuthCredential credential)? onComplete,
  void Function(FirebaseAuthException exception)? onFailed,
  void Function(String verId, int? forceResendingToken)? onCodeSent,
  void Function(String verId)? onCodeAutoRetrievalTimeout,
}) {
  return _i<T>("signInByPhone").signInByPhone(
    authenticator,
    multiFactorInfo: multiFactorInfo,
    multiFactorSession: multiFactorSession,
    timeout: timeout,
    onComplete: onComplete,
    onFailed: onFailed,
    onCodeSent: onCodeSent,
    onCodeAutoRetrievalTimeout: onCodeAutoRetrievalTimeout,
  );
}