toip.tools

type · Browser and Node

WebAuthnGet

navigator.credentials.get, or a stand-in for tests.

@toip-tools/coseView source
TypeScriptImport
import { type WebAuthnGet } from "@toip-tools/cose";

Declaration

TypeScripttype
type WebAuthnGet = (options: CredentialRequestOptions) => Promise<
  { response: { authenticatorData: ArrayBuffer; clientDataJSON: ArrayBuffer; signature: ArrayBuffer } } | Credential | null
>;