This demonstrates how VerifyIdentity can be integrated for user verification
Complete the identity verification process step by step
Live face detection and liveness check
OCR extracts name, DOB, and address from ID
Compare selfie and ID to validate users identity
// Initialize VerifyIdentity
const response = await fetch('https://app.verifyhuman.io/api/identity/v1/submit', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'your_identity_api_key'
},
body: JSON.stringify({
selfie_b64: base64EncodedSelfie,
id_front_b64: base64EncodedIDFront,
id_type: "drivers_license"
})
});
const result = await response.json();
if (result.verified) {
console.log('Identity Verification Passed!', result);
}