defmodule MyApp.Accounts.Token do @moduledoc """ The Ash Resource for Ash Authentication tokens for our application. """ use Ash.Resource, domain: MyApp.Accounts, data_layer: AshPostgres.DataLayer, authorizers: [Ash.Policy.Authorizer], extensions: [AshAuthentication.TokenResource] postgres do table "tokens" repo MyApp.Repo end policies do bypass AshAuthentication.Checks.AshAuthenticationInteraction do description "AshAuthentication has full access" authorize_if always() end end end