Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
blinkIdResult.dateOfExpiry.year + "." + fieldDelim;
}
// there are other fields to extract
localState.results += resultString;
// Document image is returned as Base64 encoded JPEG
if (blinkIdResult.fullDocumentImage) {
localState.showImageDocument = true;
localState.resultImageDocument = 'data:image/jpg;base64,' + blinkIdResult.fullDocumentImage;
}
// Face image is returned as Base64 encoded JPEG
if (blinkIdResult.faceImage) {
localState.showImageFace = true;
localState.resultImageFace = 'data:image/jpg;base64,' + blinkIdResult.faceImage;
}
} else if (result instanceof BlinkIDReactNative.MrtdRecognizerResult) {
let mrtdResult = result;
localState.results +=
"First name: " + mrtdResult.mrzResult.secondaryId + fieldDelim +
"Last name: " + mrtdResult.mrzResult.primaryId + fieldDelim +
"Nationality: " + mrtdResult.mrzResult.nationality + fieldDelim +
"Gender: " + mrtdResult.mrzResult.gender + fieldDelim +
"Date of birth: " +
mrtdResult.mrzResult.dateOfBirth.day + "." +
mrtdResult.mrzResult.dateOfBirth.month + "." +
mrtdResult.mrzResult.dateOfBirth.year + ".";
// Document image is returned as Base64 encoded JPEG
if (mrtdResult.fullDocumentImage) {
localState.showImageDocument = true;
localState.resultImageDocument = 'data:image/jpg;base64,' + mrtdResult.fullDocumentImage;
}