changePhoneNumber static method

SmsChangePhoneNumberAuthProvider changePhoneNumber({
  1. required String phoneNumber,
  2. required String countryNumber,
  3. Locale? locale,
  4. VoidCallback? onAutoVerificationCompleted,
  5. void onAutoVerificationFailed(
    1. Exception error
    )?,
})

AuthProvider for performing Authentication.change.

Used to change phone numbers.

Authentication.changeを実行するためのAuthProvider

電話番号を変更する際に利用します。

Pass the phone number in phoneNumber and the SMS language setting in locale.

If you specify [countryNumber]', the prefix countryNumber` is added to phoneNumber.

phoneNumberで電話番号、localeにSMSの言語設定を渡します。

countryNumberを指定すると+[countryNumber]というプレフィックスがphoneNumberに付与されます。

An AuthQuery for SMS code authentication.

An SMS with a code is sent at signIn, and the code is confirmed at confirmSignIn to log in.

After logging in, you will be able to change your phone number.

SMSのコード認証を行うためのAuthQuery

signIn時にコード付きのSMSを送信し、confirmSignInでコードを確定してログインを行ないます。

ログイン後、電話番号の変更が可能になります。

Implementation

static SmsChangePhoneNumberAuthProvider changePhoneNumber({
  required String phoneNumber,
  required String countryNumber,
  Locale? locale,
  VoidCallback? onAutoVerificationCompleted,
  void Function(Exception error)? onAutoVerificationFailed,
}) {
  return SmsChangePhoneNumberAuthProvider(
    phoneNumber: phoneNumber,
    locale: locale,
    countryNumber: countryNumber,
    onAutoVerificationCompleted: onAutoVerificationCompleted,
    onAutoVerificationFailed: onAutoVerificationFailed,
  );
}