function · Browser and Node

# verifyApproval

Checks an approval for `action` under `chain` (§9.2). Empty means valid. Whether it was already used is the caller's to know (SpendLedger.approvalUsed, or `usedApprovals` in decide).

`@toip-tools/mandates` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/approval.ts#L35)

Import:

```ts
import { verifyApproval } from "@toip-tools/mandates";
```

## Declaration

Signature:

```ts
verifyApproval(a: Approval, o: {
    chain: Mandate[];
    action: Action;
    clock: Clock;
}): Promise<Reason[]>;
```

### Parameters

- **`a` (required)**: `Approval`
- **`o` (required)**: `{ chain: Mandate[]; action: Action; clock: Clock; }`

### Returns

`Promise<Reason[]>`

[Usage guide](https://toip.tools/toolkit/mandates/#usage) · [Error handling](https://toip.tools/toolkit/mandates/#errors) · [All exports](https://toip.tools/toolkit/mandates/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mandates/api/verifyApproval/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
