# 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](https://provenanceauth.com/docs/sdks/node/mandate-intents/biometric-challenge.md)

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

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

Calls `POST /v1/mandate/biometric_challenges`.

### [create](https://provenanceauth.com/docs/sdks/node/mandate-intents/create.md)

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

Calls `POST /v1/mandate/intents`.

### [createWithApproval](https://provenanceauth.com/docs/sdks/node/mandate-intents/create-with-approval.md)

```ts
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](https://provenanceauth.com/docs/sdks/node/mandate-intents/get.md)

```ts
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}`.
