SDK reference · Rails
holderReason
holderReason in @provenanceauth/rails/mandates, Rails. The holder check on a bound grant: null when it holds, else the reason.
Signature
holderReason(token: string, jkt: string, holder: MandateHolder | undefined, nowMs: number): Promise<MandateReason | null>Parameters
tokenstringRequiredjktstringRequiredholderMandateHolder | undefinedRequirednowMsnumberRequired
Returns
Promise<MandateReason | null>
HTTP operation
Runs locally, with no request to the API.