Skip to content

Commit

Permalink
idenfy: Remove filter for auto validation
Browse files Browse the repository at this point in the history
  • Loading branch information
calebtuttle committed Aug 10, 2023
1 parent cd3b11b commit c0733b2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/services/idenfy/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ function validateSession(statusData, verificationData, scanRef) {
log: `idenfy/credentials: Failed to retrieve iDenfy session ${scanRef}. Exiting.`,
};
}
if (statusData.autoDocument !== "DOC_VALIDATED") {
return {
error: `Verification failed. Failed to auto validate document.`,
log: `idenfy/credentials: Verification failed. autoDocument: ${statusData.autoDocument}. Exiting.`,
};
}
if (statusData.autoFace !== "FACE_MATCH") {
return {
error: `Verification failed. Failed to auto match face.`,
log: `idenfy/credentials: Verification failed. autoFace: ${statusData.autoFace}. Exiting.`,
};
}
// if (statusData.autoDocument !== "DOC_VALIDATED") {
// return {
// error: `Verification failed. Failed to auto validate document.`,
// log: `idenfy/credentials: Verification failed. autoDocument: ${statusData.autoDocument}. Exiting.`,
// };
// }
// if (statusData.autoFace !== "FACE_MATCH") {
// return {
// error: `Verification failed. Failed to auto match face.`,
// log: `idenfy/credentials: Verification failed. autoFace: ${statusData.autoFace}. Exiting.`,
// };
// }
if (statusData.manualDocument !== "DOC_VALIDATED") {
return {
error: `Verification failed. Failed to manually validate document.`,
Expand Down

0 comments on commit c0733b2

Please sign in to comment.