biometry-react-components provides the capture half of an integration: camera
and microphone components that handle permissions, countdowns, recording windows
and the challenge phrase, then hand you ordinary File objects.
It has no HTTP layer. Components capture media and emit files; you send those
files with the Web SDK or your own backend. That separation is
deliberate — your API token never has to reach the browser.
Installation
npminstallbiometry-react-components
Components
Component
Purpose
FaceCapture
Still photo of a face
DocScan
Photo of an identity document
FaceRecorder
Video with spoken challenge digits, for verification
Upload file. The voice is extracted server-side from the same video that
passed the liveness check, so there is no separate audio file to send — and a
separately supplied one is not accepted, because the voice check is bound to the
verified video.
Each component reports twice: once when media is captured, and again once the
person has confirmed it. Use the confirmed callback for anything you upload — the
first fires before the user has had a chance to retake.
Hooks
useRecorder, usePermissions and useAudioPermissions back the components and
are exported for building your own capture UI.