CkOtpConfig constructor
CkOtpConfig({
- Set<
CkOtpTrigger> autoTriggers = const {}, - CkOtpVerificationStrategy verificationStrategy = CkOtpVerificationStrategy.tokenBased,
- Duration resendCooldown = const Duration(seconds: 120),
- int maxResendAttempts = 0,
- int otpLength = 6,
- String verificationTokenHeaderKey = 'token',
- bool sendVerificationTokenInHeader = true,
- int? otpNotVerifiedStatusCode = 403,
- required FutureOr<
Map< verifyBodyBuilder(String, dynamic> >- VerifyOtpCallBack otpCallBack
- required FutureOr<
Map< resendBodyBuilder(String, dynamic> >- ResendOtpCallBack resendOtpCallBack
Implementation
CkOtpConfig({
this.autoTriggers = const {},
this.verificationStrategy = CkOtpVerificationStrategy.tokenBased,
this.resendCooldown = const Duration(seconds: 120),
this.maxResendAttempts = 0,
this.otpLength = 6,
this.verificationTokenHeaderKey = 'token',
this.sendVerificationTokenInHeader = true,
this.otpNotVerifiedStatusCode = 403,
required this.verifyBodyBuilder,
required this.resendBodyBuilder,
});