# verifyDealAcceptance

verifyDealAcceptance in @provenanceauth/rails/deals, Rails. The seller's offline check of a buyer's acceptance token: our ES256 signature against the JWKS you fetched, expiry, `deal.offer_hash` equal to YOUR offer's hash, the seller being you, `aud`, the revocation list you pass, and that every person the offer (or the buyer) required approved, with at least the method and tier asked for, over these exact terms.

## Signature

```ts
verifyDealAcceptance(token: string, offer: string | OfferPayload, opts: { jwks: Jwks; seller?: string; revocations?: DealRevocations }): Promise<AcceptanceResult>
```

## Parameters

- `token` (string)
- `offer` (string | OfferPayload)
- `opts` ({ jwks: Jwks; seller?: string; revocations?: DealRevocations })

## Returns

`Promise<AcceptanceResult>`

Runs locally, with no request to the API.
