# verifyAp2Mandate

verifyAp2Mandate in @provenanceauth/rails/ap2, Rails. Verify a closed AP2 Checkout or Payment Mandate (its content, as your AP2 stack returns it after checking the SD-JWT) against the Provenance intent token it carries: 1.

## Signature

```ts
verifyAp2Mandate(closed: Ap2ClosedMandate | Record<string, unknown>, opts: Ap2VerifyOptions): Promise<Ap2VerifyResult>
```

## Parameters

- `closed` (Ap2ClosedMandate | Record<string, unknown>)
- `opts` (Ap2VerifyOptions)

## Returns

`Promise<Ap2VerifyResult>`

Runs locally, with no request to the API.
