# prov.mandate.intents.biometricChallenge

prov.mandate.intents.biometricChallenge in Node SDK. Get a single-use challenge to answer with a platform authenticator.

## Signature

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

## Returns

`Promise<BiometricChallenge>`

## HTTP operation

[`POST /v1/mandate/biometric_challenges`](https://provenanceauth.com/docs/api/intent-tokens.md#post-v1-mandate-biometric-challenges): Create a biometric challenge

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/biometric_challenges`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/biometric_challenges", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```
