AshAuthentication.Oauth2Server.AuthorizationCodeResource.Actions (ash_authentication_oauth2_server v0.2.1)

Copy Markdown View Source

Action helpers for resources extended with AshAuthentication.Oauth2Server.AuthorizationCodeResource.

Summary

Functions

Bulk-destroy authorization-code rows that have expired or whose consumed_at is older than the configured grace.

Functions

expunge_expired(resource, opts \\ [])

@spec expunge_expired(
  Ash.Resource.t(),
  keyword()
) :: :ok | {:error, any()}

Bulk-destroy authorization-code rows that have expired or whose consumed_at is older than the configured grace.

Options

  • :tenant — required for resources using strategy :context multitenancy without global? true. Defaults to nil.
  • :domain — overrides the resource's compile-time domain.