SmsSignInAuthProvider class

AuthProvider for performing Authentication.signIn.

Authentication.signInを実行するための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でコードを確定してログインを行ないます。

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

Inheritance
Available Extensions

Constructors

SmsSignInAuthProvider({required String phoneNumber, required String countryNumber, Locale? locale, VoidCallback? onAutoVerificationCompleted, void onAutoVerificationFailed(Exception error)?})
const

Properties

countryNumber String
Country code.
final
hashCode int
The hash code for this object.
no setterinherited
locale Locale?
SMS language settings.
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
Phone number to send SMS to.
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