View as Markdown

SDK reference · Rails

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

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

Parameters

tokenstringRequired
opts{ jwks: Jwks; need?: MandateNeed; online?: boolean; apiBase?: string; fetch?: typeof fetch; now?: number; holder?: MandateHolder }Required

Returns

Promise<MandateVerifyResult>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.