sendOtp method

Future<OtpSendResult> sendOtp({
  1. required String phoneNumber,
})

Send a 6-digit OTP to the given E.164 phone number. Returns the OTP expiry timestamp so the app can show a resend countdown.

Implementation

Future<OtpSendResult> sendOtp({required String phoneNumber}) async {
  return _api.sendOtp(phoneNumber: phoneNumber);
}