v4.4.0
New Identity Verification Features
Face comparison using an uploaded picture
This feature requires some extra setup after creating the session, so, the picture to be used for the face comparison is uploaded.
The steps are:
- Create session - with FaceComparison (using
RequestedFaceComparisonCheckBuilder
) - Fetch the session configuration
- Retrieve the face capture requirements
- Create a FaceCapture resource associated to the face capture requirement (using
CreateFaceCaptureResourcePayloadBuilder
and the new idv client methodcreateFaceCaptureResource()
) - Upload the picture as the FaceCapture resource content (using
UploadFaceCaptureImagePayloadBuilder
and the new idv client methoduploadFaceCaptureImage()
)
See full example in examples/idv/src/controllers/use-cases/face.comparison.check.controller.js
Allowing expired documents
A new method withAllowExpiredDocuments(value: Boolean)
on both OrthogonalRestrictionsFilterBuilder
and DocumentRestrictionsFilterBuilder
filter builders is now available.
with OrthogonalRestrictionsFilterBuilder
const orthogonalRestrictionsFilter = new OrthogonalRestrictionsFilterBuilder()
.withWhitelistedDocumentTypes(['PASSPORT'])
.withAllowExpiredDocuments(true)
.build();
const requiredIdDocument = new RequiredIdDocumentBuilder()
.withFilter(orthogonalRestrictionsFilter)
.build();
or
withDocumentRestrictionsFilterBuilder
const documentRestriction = new DocumentRestrictionBuilder()
.withDocumentTypes(['PASSPORT'])
.build();
const documentRestrictionsFilter = new DocumentRestrictionsFilterBuilder()
.withDocumentRestriction(documentRestriction)
.forWhitelist()
.withAllowExpiredDocuments(true)
.build();
const requiredIdDocument = new RequiredIdDocumentBuilder()
.withFilter(documentRestrictionsFilter)
.build();