sendOtp method
Send OTP manually — sets trigger and recipient, calls API, auto-navigates on success.
For backward compatibility, calling sendOtp without parameters delegates to resendOtp.
Implementation
Future<CkAuthResult<void>> sendOtp({
CkOtpTrigger? trigger,
String? recipient,
}) {
if (trigger == null && recipient == null) {
return resendOtp();
}
return CkAuthService.instance.sendOtp(
trigger: trigger ?? otpManager.lastTrigger ?? CkOtpTrigger.signup,
recipient: recipient ?? otpManager.lastRecipient,
);
}