interface · Browser and Node

# SigOptions

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

Import:

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

## Declaration

interface:

```ts
interface SigOptions {
  /** A pluggable verifier, tried first. Return undefined to fall back to the built-in checks. */
  verifySig?: (input: { key: Qb64; message: Uint8Array; sig: IndexedSig }) => Promise<boolean | undefined> | boolean | undefined;
  /** How to check WebAuthn-wrapped signatures. `false` rejects them. */
  webauthn?: WebAuthnPolicy | false;
}
```

## Properties

**`verifySig` (optional)**

`((input: { key: Qb64; message: Uint8Array; sig: IndexedSig; }) => Promise<boolean | undefined> | boolean | undefined) | undefined`

A pluggable verifier, tried first. Return undefined to fall back to the built-in checks.

**`webauthn` (optional)**

`false | WebAuthnPolicy | undefined`

How to check WebAuthn-wrapped signatures. `false` rejects them.

[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/SigOptions/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
