resendOtp method
Resend OTP — auto-restarts timer
Implementation
Future<CkAuthResult<void>> resendOtp() {
return loadingController.wrap(CkAuthLoadingType.sendOtp, () async {
if (config.mockAuth) {
otpManager.startResendTimer();
return const CkAuthResult<void>.success(
statusCode: 200,
rawResponse: {'message': 'Mock OTP resend successful'},
);
}
return otpManager.sendOtp();
});
}