interface · Browser and Node
SigOptions
@toip-tools/eventlogView sourceimport { type SigOptions } from "@toip-tools/eventlog";
Declaration
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
verifySigoptional((input: { key: Qb64; message: Uint8Array; sig: IndexedSig; }) => Promise<boolean | undefined> | boolean | undefined) | undefinedA pluggable verifier, tried first. Return undefined to fall back to the built-in checks.
webauthnoptionalfalse | WebAuthnPolicy | undefinedHow to check WebAuthn-wrapped signatures.
falserejects them.