signIn static method

SmsSignInAuthProvider signIn({
  1. required String phoneNumber,
  2. required String countryNumber,
  3. Locale? locale,
})

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,
  );
}