mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-21 13:53:25 +12:00
16 lines
316 B
Elixir
16 lines
316 B
Elixir
defmodule Example.UserIdentity do
|
|
@moduledoc false
|
|
use Ash.Resource,
|
|
data_layer: AshPostgres.DataLayer,
|
|
extensions: [AshAuthentication.UserIdentity],
|
|
domain: Example
|
|
|
|
user_identity do
|
|
user_resource(Example.User)
|
|
end
|
|
|
|
postgres do
|
|
table "user_identities"
|
|
repo(Example.Repo)
|
|
end
|
|
end
|