registerByPhoneCode static method

Future<AuthResult> registerByPhoneCode(
  1. String phone,
  2. String code,
  3. String password, {
  4. String? phoneCountryCode,
})

OIDC register a new user by phone number and an SMS verification code.

Implementation

static Future<AuthResult> registerByPhoneCode(
    String phone, String code, String password,
    {String? phoneCountryCode}) async {
  AuthRequest authData = await OIDCClient.prepareLogin();
  return AuthClient.registerByPhoneCode(phone, code, password,
      phoneCountryCode: phoneCountryCode, authData: authData);
}