Aucoface: Identity Validation
The Identity Validation SDK allows you to run web-based Aucoface workflows to validate identity by verifying the user's ID and selfie.
Integration Examples
warning
For the integration, you must have an <iframe id='iframeId'>
element where the SDK will be rendered, and the AucoSDK function must be provided with the ID of this element.
info
Follow the link below to see the reference of the events required for an SDK integration: 👉🏻 Events
Basic Integration
import { AucoSDK } from 'auco-sdk-integration';
const unsubscribe = AucoSDK({
iframeId: 'iframeId',
sdkType: 'validation',
language: 'es', // Accepted languages 'es' | 'en'
keyPublic: 'puk_xxxxx', // Company public key
events: {
onSDKReady,
onSDKClose,
},
sdkData: {
document: 'WO0J4L3YWB', // Validation process code
uxOptions: {
primaryColor: '#021c30',
alternateColor: '#a557f2',
},
},
env: process.env.PUBLIC_ENVIRONMENT == 'dev' ? 'DEV' : 'PROD',
});