SDK reference · Rails
acceptDelegation
acceptDelegation in @provenanceauth/rails/a2a, Rails. The receiver's check of a message's grant: it is present, checks against the JWKS (signature, expiry, need), is bound to this receiver's own key (cnf.jkt is its thumbprint: a grant bound to anyone else, or a bearer grant, is refused), and, when the receiver checks online or the grant says status_check: "online", its chain is live.
Signature
acceptDelegation(message: unknown, opts: AcceptGrantOptions): Promise<DelegationVerdict>Parameters
messageunknownRequiredoptsAcceptGrantOptionsRequired
Returns
Promise<DelegationVerdict>
HTTP operation
Runs locally, with no request to the API.