PhoenixKit.Users.LoginAttemptsPruneWorker (phoenix_kit v2.34.0)

Copy Markdown View Source

Oban worker that prunes old failed sign-in buckets.

Runs daily. Retention comes from the login_attempt_retention_days setting (default: 90), matching activity_retention_days.

Pruning is by last_at, not first_at — a bucket that is still being added to is still live, however long ago it opened.