Skip to content

v4.1.0

Compare
Choose a tag to compare
@laurent-yoti laurent-yoti released this 03 Nov 14:11

New Feature

Support static liveness check

Yoti IDV is now exposing another type of liveness.
One must chose either Zoom or Static type, not both.

const livenessCheck = new RequestedLivenessCheckBuilder()
  .forStaticLiveness()
  .build()

const mySessionSpecificationBuilder = new SessionSpecificationBuilder()
  // more checks
  .withRequestedCheck(livenessCheck)
  // more checks

When retrieving the session, one can retrieve the liveness resource of a static liveness check using the following:

const sessionResult = await idvClient.getSession(sessionId)
const livenessResources = sessionResult.getResources().getStaticLivenessResources()
// livenessResources[0].getImage()
// livenessResources[0].getImage().getId()