sendOTPViaSMS method
Implementation
@override
Future<Result<SendOTPResult>> sendOTPViaSMS(String phoneNumber) async {
const path = 'v1/auth/otp/generate';
return http.post(
uri: Uri.parse('$baseUrl/$path').toString(),
body: {'phoneNumber': phoneNumber, 'medium': 'SMS'},
success: (json) => SendOTPResult.fromJson(json));
}