SmsChangePhoneNumberAuthProvider constructor

const SmsChangePhoneNumberAuthProvider({
  1. required String phoneNumber,
  2. Locale? locale,
  3. required String countryNumber,
  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.

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

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

const SmsChangePhoneNumberAuthProvider({
  required this.phoneNumber,
  this.locale,
  required this.countryNumber,
  this.onAutoVerificationCompleted,
  this.onAutoVerificationFailed,
});