# verifyMandate

verifyMandate in @provenanceauth/rails/mandates, Rails. Check another agent's mandate token: signature (our JWKS), expiry, `need` against its limits, and, with `online: true`, the keyless status (`apiBase` is our API, e.g.

## Signature

```ts
verifyMandate(token: string, opts: { jwks: Jwks; need?: MandateNeed; online?: boolean; apiBase?: string; fetch?: typeof fetch; now?: number; holder?: MandateHolder }): Promise<MandateVerifyResult>
```

## Parameters

- `token` (string)
- `opts` ({ jwks: Jwks; need?: MandateNeed; online?: boolean; apiBase?: string; fetch?: typeof fetch; now?: number; holder?: MandateHolder })

## Returns

`Promise<MandateVerifyResult>`

Runs locally, with no request to the API.
