View as Markdown

SDK reference · Node SDK

prov.mandate.intents

prov.mandate.intents in the Node SDK: 4 methods. provenance.mandate.intents: mint intent tokens (POST /v1/mandate/intents) and read one back.

Methods

biometricChallenge

prov.mandate.intents.biometricChallenge(): Promise<BiometricChallenge>

Get a single-use challenge to answer with a platform authenticator.

Calls POST /v1/mandate/biometric_challenges.

create

prov.mandate.intents.create(params: (AuthorizeParams & { approval?: ApprovalParams }) | AuthorizeOptionsParams, opts?: IntentCallOptions): Promise<IntentAuthorization | StepUpAuthorization | OptionsAuthorization>

Calls POST /v1/mandate/intents.

createWithApproval

prov.mandate.intents.createWithApproval(params: AuthorizeParams & { approval: ApprovalParams }, opts?: { pollMs?: number; timeoutMs?: number } & IntentCallOptions): Promise<StepUpAuthorization>

Authorize a checkout step-up and poll until the person decides, the store's challenge runs out, or timeoutMs (default 120 s) elapses.

get

prov.mandate.intents.get(jti: string): Promise<IntentStatus>

The issuer's view of one token: revoked, with the scope and reason.

Calls GET /v1/mandate/intents/{id}.

Was this page helpful? Send us feedback

LLM? Read llms.txt.