function · Browser and Node
webAuthnSigner
A hook for passkeys. getAssertion runs navigator.credentials.get with the given challenge,
which is SHA-256 of the message. The event then carries the assertion (our -Y group; not KERI).
@toip-tools/eventlogView sourceimport { webAuthnSigner } from "@toip-tools/eventlog";
Declaration
webAuthnSigner(opts: {
publicKey: Uint8Array;
getAssertion: (challenge: Uint8Array) => Promise<WebAuthnAssertion>;
}): Signer;
Parameters
optsrequired{ publicKey: Uint8Array; getAssertion: (challenge: Uint8Array) => Promise<WebAuthnAssertion>; }