v4.1.0
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()