View Source AshAuthentication.TokenResource.Expunger (ash_authentication v4.0.1)

A GenServer which periodically removes expired token revocations.

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

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.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.