# `AshAuthentication.TokenResource.Expunger`
[🔗](https://github.com/team-alembic/ash_authentication/blob/main/lib/ash_authentication/token_resource/expunger.ex#L5)

A `GenServer` which periodically removes expired token revocations.

Scans all token revocation resources based on their configured expunge
interval and removes any expired records.

```elixir
defmodule MyApp.Accounts.Token do
  use Ash.Resource,
    extensions: [AshAuthentication.TokenResource],
    domain: MyApp.Accounts

  token do
    expunge_interval 12
  end
end
```

This GenServer is started by the `AshAuthentication.Supervisor` which should
be added to your app's supervision tree.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
