deleteAttempts abstract method

Future<void> deleteAttempts(
  1. Session session, {
  2. required T nonce,
  3. Duration? olderThan,
})

Deletes all attempts that match the given filters.

If nonce is provided, only attempts for the given nonce will be deleted. If olderThan is provided, only attempts older than the given duration will be deleted.

If both are provided, only attempts for the given nonce and older than the given duration will be deleted.

Returns the number of attempts deleted.

Implementation

Future<void> deleteAttempts(
  final Session session, {
  required final T nonce,
  final Duration? olderThan,
});