mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 21:33:10 +12:00
15 lines
257 B
Elixir
15 lines
257 B
Elixir
defmodule Example.Token do
|
|
@moduledoc false
|
|
use Ash.Resource,
|
|
data_layer: AshPostgres.DataLayer,
|
|
extensions: [AshAuthentication.TokenResource]
|
|
|
|
postgres do
|
|
table("tokens")
|
|
repo(Example.Repo)
|
|
end
|
|
|
|
token do
|
|
api Example
|
|
end
|
|
end
|