sendResetPasswordText static method

Future<VerificationCode> sendResetPasswordText({
  1. required String phoneNumber,
})

Implementation

static Future<VerificationCode> sendResetPasswordText({
  required String phoneNumber,
}) async {
  User user = User()..contactInfo = UserContactInfo(phone: phoneNumber);
  HeraRequest req = HeraRequest()..namespace = _namespace;
  req.user = user;
  return (await _heraClient.sendResetPasswordText(req)).verificationCode;
}