Installing FAD SDK
FAD SDK can be integrated into your project in two ways: as an npm package for modern JavaScript frameworks, or as a standalone JavaScript file for vanilla implementations.Prerequisites
Before installing FAD SDK, ensure your environment meets these requirements:Browser Support
Modern browsers with ES6+ support, WebAssembly, and MediaDevices API
HTTPS Required
Camera and media permissions require secure context (HTTPS)
Camera-based modules require browser support for
getUserMedia and WebAssembly. Video recording modules additionally require MediaRecorder API support.Installation Methods
- npm
- Vanilla JavaScript
Verify Installation
Confirm that FAD SDK is properly installed by checking the version:Configuration
After installation, you’ll need to configure the SDK with your credentials.Environment Setup
FAD SDK supports multiple environments:Basic Configuration
Create an SDK instance with your token and options:Replace
'YOUR_API_TOKEN' with the actual token provided by your FAD SDK administrator.Module-Specific Dependencies
Some modules require additional configuration or credentials:Liveness-3D (FaceTec)
Liveness-3D (FaceTec)
Requires FaceTec credentials:
deviceKeyIdentifierpublicFaceScanEncryptionKeyproductionKeyText(domains, expiry date, key)- Optional:
baseURLfor custom endpoints
Capture-id&R (Regula)
Capture-id&R (Regula)
Requires Regula credentials:
- API credentials for document processing
- Optional: configuration for capture type and data extraction
Capture-id&A (Acuant)
Capture-id&A (Acuant)
Requires Acuant credentials:
- API credentials for document processing
- Alert configuration options
Signature Module
Signature Module
Requires configuration for:
- Video recording settings
- Signature pad customization
- Face detection parameters
Browser Compatibility
FAD SDK requires modern browser features:| Feature | Required For | Browser Support |
|---|---|---|
| getUserMedia | Camera modules | Chrome 53+, Firefox 36+, Safari 11+ |
| WebAssembly | Camera modules | Chrome 57+, Firefox 52+, Safari 11+ |
| MediaRecorder | Video modules | Chrome 47+, Firefox 25+, Safari 14.1+ |
| ES6 Modules | All modules | Chrome 61+, Firefox 60+, Safari 11+ |
Troubleshooting
Module import fails in vanilla JS
Module import fails in vanilla JS
Ensure your script tag includes
type="module":Camera permission denied
Camera permission denied
Verify that:
- Your site is served over HTTPS
- Browser permissions allow camera access
- No other application is using the camera
TypeScript errors with npm package
TypeScript errors with npm package
FAD SDK v3.0.0 includes TypeScript definitions. If you encounter issues:
Version mismatch or undefined
Version mismatch or undefined
Clear your node_modules and reinstall:
Next Steps
Now that FAD SDK is installed, you’re ready to build your first integration:Quick Start Tutorial
Build a complete identity verification flow
Module Documentation
Explore individual module capabilities