function · Browser and Node
webAuthnSigner
A passkey as a signer (alg -65600). Each signature is a WebAuthn assertion whose challenge is SHA-256 of the Sig_structure, with user verification required, so each one asks for the biometric or PIN.
@toip-tools/coseView sourceimport { webAuthnSigner } from "@toip-tools/cose";
Declaration
webAuthnSigner(opts: {
credentialId: Uint8Array;
rpId: string;
publicKey: Uint8Array;
kid: Uint8Array;
get?: WebAuthnGet;
timeout?: number;
}): AsyncSigner;
Parameters
optsrequired{ credentialId: Uint8Array; rpId: string; publicKey: Uint8Array; kid: Uint8Array; get?: WebAuthnGet; timeout?: number; }