ash_authentication/test/support/example/token.ex

16 lines
295 B
Elixir

defmodule Example.Token do
@moduledoc false
use Ash.Resource,
data_layer: AshPostgres.DataLayer,
extensions: [AshAuthentication.TokenResource],
domain: Example
postgres do
table("tokens")
repo(Example.Repo)
end
actions do
defaults [:read, :destroy]
end
end