mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 12:52:55 +12:00
docs: add snippet to help enable policy authorizers (#683)
This commit is contained in:
parent
ca57510c90
commit
4abbf7c0f5
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ defmodule MyApp.Accounts.Token do
|
|||
use Ash.Resource,
|
||||
data_layer: AshPostgres.DataLayer,
|
||||
extensions: [AshAuthentication.TokenResource],
|
||||
# If using policies, enable the policy authorizer:
|
||||
# authorizers: [Ash.Policy.Authorizer],
|
||||
domain: MyApp.Accounts
|
||||
|
||||
postgres do
|
||||
|
|
Loading…
Reference in a new issue