AuthenticationRateLimiter constructor

AuthenticationRateLimiter({
  1. int maxAttempts = kDefaultAuthenticationRateLimit,
  2. Duration window = kDefaultAuthenticationRateWindow,
  3. int maxTrackedSources = 4096,
  4. DateTime now()?,
})

Implementation

AuthenticationRateLimiter({
  this.maxAttempts = kDefaultAuthenticationRateLimit,
  this.window = kDefaultAuthenticationRateWindow,
  this.maxTrackedSources = 4096,
  DateTime Function()? now,
}) : _now = now ?? DateTime.now;