SDK reference · Rails
acceptGrant
acceptGrant in @provenanceauth/rails/a2a, Rails. The receiver's check of a grant it was handed, whatever carried it (A2A metadata here, MCP _meta in @provenanceauth/rails/mcp): see.
Signature
acceptGrant(data: DelegationMessageData | null, opts: AcceptGrantOptions): Promise<DelegationVerdict>Parameters
dataDelegationMessageData | nullRequiredoptsAcceptGrantOptionsRequired
Returns
Promise<DelegationVerdict>
HTTP operation
Runs locally, with no request to the API.