hasTooManyAttempts abstract method

Future<bool> hasTooManyAttempts(
  1. Session session, {
  2. required T nonce,
  3. Map<String, String>? extraData,
})

Records and attempts and checks if there have been too many attempts for the given nonce.

If the attempt is rate limited, the config.onRateLimitExceeded callback will be called.

nonce is the unique identifier for the request (e.g., email, request ID, token). extraData is optional additional data to log with the attempt.

Returns true if the rate limit has been exceeded, false otherwise.

Implementation

Future<bool> hasTooManyAttempts(
  final Session session, {
  required final T nonce,
  final Map<String, String>? extraData,
});