Management Commands¶
blockauth_cleanup¶
Cleans up expired data: stale OTPs, expired WebAuthn challenges, and orphaned credentials.
What It Cleans¶
- Expired OTPs -- removes OTP records past their validity window
- Expired challenges -- removes WebAuthn challenge records that were never completed
- Stale credentials -- optionally removes credentials that haven't been used within a configurable period
Usage¶
Run periodically (e.g., via cron or Celery beat) to keep the database clean: