interface · Browser and Node

# WebAuthnPolicy

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/keys.ts#L142)

Import:

```ts
import { type WebAuthnPolicy } from "@toip-tools/eventlog";
```

## Declaration

interface:

```ts
interface WebAuthnPolicy {
  /** Accepted `clientDataJSON.origin` values. Any origin when absent. */
  origins?: string[];
  /** Accepted RP ids; the authenticator data's rpIdHash must be SHA-256 of one. Not checked when absent. */
  rpIds?: string[];
  requireUserVerified?: boolean;
}
```

## Properties

**`origins` (optional)**

`string[] | undefined`

Accepted `clientDataJSON.origin` values. Any origin when absent.

**`rpIds` (optional)**

`string[] | undefined`

Accepted RP ids; the authenticator data's rpIdHash must be SHA-256 of one. Not checked when absent.

**`requireUserVerified` (optional)**

`boolean | undefined`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/WebAuthnPolicy/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
