signIn static method
AuthProvider for performing Authentication.signIn.
allowMultiProvider
is a flag that allows multiple providers to be used.
Authentication.signInを実行するためのAuthProvider。
allowMultiProvider
は複数のプロバイダーを利用することを許可するフラグです。
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 SmsSignInAuthProvider signIn({
required String phoneNumber,
required String countryNumber,
Locale? locale,
}) {
return SmsSignInAuthProvider(
phoneNumber: phoneNumber,
locale: locale,
countryNumber: countryNumber,
);
}