# `AshVault.Macaroon.Caveats.ActionIn`
[🔗](https://github.com/jakeschurch/ash_vault/blob/main/lib/ash_vault/macaroon/caveats/action_in.ex#L1)

An `:authorize`-phase caveat check: admits the request only if the action being
authorized is named in the caveat's list.

    caveat :actions, {:array, :string},
      phase: :authorize,
      check: AshVault.Macaroon.Caveats.ActionIn

With `qualified?: true` the names are `"Resource.action"` (`inspect(resource) <> "." <>
action`), for tokens that must be limited across resources.

In the `:verify` phase there is no action yet, so it refuses: declare it
`phase: :authorize`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
