method

App.PruneExpiredAuth

Remove one bounded batch of expired sessions and API keys.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
limitintThe 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)

Source core/auth_maintenance.go:14

Related types

  • App

    A resolved application bound to operation services.

  • AuthPruneResult

    Expired session and API-key counts removed by one bounded cycle.