Skip to main content

verifyDecisionAuthorization

@mandaitor/sdk


@mandaitor/sdk / verifyDecisionAuthorization

Function: verifyDecisionAuthorization()

verifyDecisionAuthorization(token, options): Promise<AuthorizationVerificationResult>

Defined in: @mandaitor/sdk/dist/decisions.d.ts:130

Verifies a decision authorization: that it is an authorization and nothing else, that the issuer's authorization key signed it, that it is for this enforcement point and still in its five minutes, and that it says what options.expected says. It does not redeem it: an authorization is acted on only after MandaitorClient.redeemDecision succeeds.

Parameters​

token​

string

options​

AuthorizationVerifyOptions

Returns​

Promise<AuthorizationVerificationResult>