Skip to content

v4.4.0

Compare
Choose a tag to compare
@laurent-yoti laurent-yoti released this 16 Aug 10:45
· 76 commits to master since this release

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:

  1. Create session - with FaceComparison (using RequestedFaceComparisonCheckBuilder)
  2. Fetch the session configuration
  3. Retrieve the face capture requirements
  4. Create a FaceCapture resource associated to the face capture requirement (using CreateFaceCaptureResourcePayloadBuilder and the new idv client method createFaceCaptureResource())
  5. Upload the picture as the FaceCapture resource content (using UploadFaceCaptureImagePayloadBuilder and the new idv client method uploadFaceCaptureImage())

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();