type · Browser and Node
WebAuthnGet
navigator.credentials.get, or a stand-in for tests.
@toip-tools/coseView sourceimport { type WebAuthnGet } from "@toip-tools/cose";
Declaration
type WebAuthnGet = (options: CredentialRequestOptions) => Promise<
{ response: { authenticatorData: ArrayBuffer; clientDataJSON: ArrayBuffer; signature: ArrayBuffer } } | Credential | null
>;