sendOtp method
Requests an OTP to be sent to the given identifier via optional channel.
Implementation
Future<void> sendOtp({required String identifier, String? channel}) async {
final uri = auth.baseUrl.resolve('/auth/otp/send');
await auth.dio.post<dynamic>(
uri.toString(),
data: {'identifier': identifier, if (channel != null) 'channel': channel},
options: Options(headers: {'Accept': 'application/json'}),
);
}