OTPAttemptTracker constructor

OTPAttemptTracker({
  1. int? maxAttempts,
  2. Duration? lockoutDuration,
})

Implementation

OTPAttemptTracker({int? maxAttempts, Duration? lockoutDuration})
  : maxAttempts = maxAttempts ?? OTPSecurityConfig.maxAttempts,
    lockoutDuration = lockoutDuration ?? OTPSecurityConfig.lockoutDuration;