deletePasswordResetRequestAttempts method
Deletes password reset request attempts older than olderThan.
If olderThan is null, this will remove all attempts outside the time
window that is checked upon password reset requests, as configured in
EmailIdpConfig.maxPasswordResetAttempts.timeframe.
If email is provided, only attempts for the given email will be deleted.
Implementation
Future<void> deletePasswordResetRequestAttempts(
final Session session, {
required final Duration? olderThan,
required final String? email,
required final Transaction transaction,
}) async {
await _rateLimitUtil.deleteAttempts(
session,
olderThan: olderThan,
nonce: email,
transaction: transaction,
);
}