method
App.PruneExpiredAuth
Remove one bounded batch of expired sessions and API keys.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
limit | int | The limit value. |
Returns
The declared result.
(store.AuthPruneResult, error)How it works
Execute workers call this automatically when the configured store supports authentication maintenance.
Full signature
func (application *App) PruneExpiredAuth(
ctx context.Context,
limit int,
) (store.AuthPruneResult, error)Related types
AppA resolved application bound to operation services.
AuthPruneResultExpired session and API-key counts removed by one bounded cycle.