antispoof
Enables anti-fraud detection (anti-spoofing).
Details
Attribute: antispoof
Type: boolean
Default value: false
Morphology
selphi.antispoof = true;Description
Activates anti-fraud detection in facephi-selphi-widget. If enabled, suspicious video injection behaviors interrupt capture and IAD payloads are generated in extractionFinish.
Considerations
It can block debugging tools such as the browser console. It is advisable to set its value with an environment variable or before deployment in production.
If anti-spoofing is enabled, the use of externalCamera will be ignored.
In integrations within a iframe it is necessary to activate focus within the container:
const iframe = document.getElementById('my-iframe') as HTMLIFrameElement;
iframe.addEventListener('load', () => {
iframe.focus();
});Additional information
Compatibility: Replaces antispoofEnabled in previous versions of the SDK Web.
Behaviors considered spoofing:
Focusing outside the window containing the SDK.
Opening the browser development tools.
Opening overlapping web modals (print, save, etc.).
Use of virtual cameras (OBS, emulators, browser injection).
Additional Integration: the encrypted payload is obtained in extractionFinish within encryptedLivenessRaw. It must be sent to the server and from there to the IAD Endpoint of Identity API.
Send as .bin (recommended):
Using direct fetch (not recommended):
Example
Last updated