BioKey class provides a simple interface for creating and authenticating biometric identities using the WebAuthn API with PRF extension support.
Constructor
Methods
enroll()
Creates a new biometric identity by registering a WebAuthn credential with PRF extension support.Hex-encoded public key derived from PRF output or rawId
Hex-encoded credential ID for future authentication
Unix timestamp of enrollment
Derivation method used -
'prf' for hardware-backed PRF extension, 'rawid' for HKDF fallbackauthenticate(identity)
Authenticates using a previously enrolled biometric identity.Always
true if authentication succeeds (throws on failure)Re-derived public key (matches enrolled publicKey if verified)
Derivation method used for this authentication
Example
Source Reference
See/packages/biokey-core/src/index.js:5