Method Signature
Description
ThestartLivenessToc() method initiates the TOC (Touch On Camera) liveness detection module. This technology provides passive liveness detection to ensure a live person is present during face capture.
Parameters
TOC liveness service credentials
Optional configuration object for customizing the module’s behavior and appearance
Returns
A promise that resolves with the TOC liveness module response
Code Example
Error Handling
The method may throw errors that can be identified usingFadSDK.Errors.LivenessToc:
SERVICE_ERROR- Service error occurredTIMEOUT_EXCEEDED- Detection timeout was exceededFACE_BLURRY- Captured face image is too blurry
TOC liveness detection provides passive liveness checking, which means the user doesn’t need to perform specific actions like nodding or smiling.
Always call
FAD_SDK.end() in a finally block to properly clean up resources after the module completes or fails.Related Methods
- startFacetec() - 3D liveness detection with FaceTec
- startIdentyFace() - Face capture with Identy technology