docs: add snippet to help enable policy authorizers (#683)

This commit is contained in:
Nicholas Moen 2024-05-13 10:38:07 -06:00 committed by GitHub
parent ca57510c90
commit 4abbf7c0f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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