method
Store.PruneExpiredAuth
func (backend *Store) PruneExpiredAuth(
ctx context.Context,
limit int,
) (store.AuthPruneResult, error)PruneExpiredAuth removes one bounded batch from each expiring durable credential family. The candidate ordering matches the lifecycle indexes; row locks let every process run the same maintenance cycle without duplicate work or an application-wide coordinator.
Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.
AuthPruneResultExpired session and API-key counts removed by one bounded cycle.