hasTooManyAttempts method
Records an attempts and checks if the request has too many attempts.
Returns true if the request has too many attempts, false otherwise.
If no rate limiter is provided, returns false.
Implementation
Future<bool> hasTooManyAttempts(
final Session session, {
required final UuidValue nonce,
final Map<String, String>? extraData,
}) async {
return await rateLimiter?.hasTooManyAttempts(
session,
nonce: nonce,
extraData: extraData,
) ??
false;
}