Configuration
SladeIDConfig
| Field | Type | Default | Notes |
|---|---|---|---|
middlewareUrl | string | required | Base URL of the Slade ID backend service. |
clientSecret | string | required | ClientSecret. |
device | DeviceDescriptor | auto-synthesised | Optional capture-device metadata. Omit to use the auto value. |
fetchImpl | typeof fetch | globalThis.fetch | For Node test harnesses. |
timeoutMs | number | 15000 | Per network call. |
fingerprintQualityThreshold | number | 40 | Quality floor (0–100). |
fingerprintMaxRetries | number | 5 | |
targetFingers | number[] | [1, 2, 3, 6, 7, 8] | Position numbers — see Capture sessions. |
faceAntispoofThreshold | number | 0.7 | Real-confidence floor. |
DeviceDescriptor
interface DeviceDescriptor {
serialNumber: string;
deviceType: 'Camera' | 'FingerPrint' | 'PalmPrint';
deviceManufacturer: string;
deviceName: string;
}Optional. The SDK auto-fills this in browser environments, so most integrators do not need to set it. Pass an explicit device only when you are running outside a browser (Node test harness) or you need captures attributed to a specific physical workstation, kiosk, or USB scanner.