SmsChangePhoneNumberAuthProvider class
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
でコードを確定してログインを行ないます。
ログイン後、電話番号の変更が可能になります。
- Inheritance
-
- Object
- AuthProvider
- ChangeAuthProvider
- ChangePhoneNumberAuthProvider
- SmsChangePhoneNumberAuthProvider
Constructors
- SmsChangePhoneNumberAuthProvider({required String phoneNumber, Locale? locale, required String countryNumber, VoidCallback? onAutoVerificationCompleted, void onAutoVerificationFailed(Exception error)?})
-
AuthProvider for performing Authentication.change.
const
Properties
- countryNumber → String
-
Country code.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → Locale?
-
Locale to send SMS for change.
final
- onAutoVerificationCompleted → VoidCallback?
-
Callback for automatically entering the code when an SMS code is received.
final
- onAutoVerificationFailed → void Function(Exception error)?
-
Callback if the code is wrong when the SMS code is received.
final
- phoneNumber → String
-
Changed phone number.
final
- providerId → String
-
ID that defines the provider's process.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited