v4.3.0
New Identity Verification Features
Control of Biometric Consent UX flow
New methods available in the builder SdkConfigBuilder
to configure when in the flow the biometric consent is being collected: withEarlyBiometricConsentFlow()
and withJustInTimeBiometricConsentFlow()
const sdkConfig = new SdkConfigBuilder()
.withEarlyBiometricConsentFlow() // alternatively use .withJustInTimeBiometricConsentFlow()
.build()
Obtain Expanded Document fields
Within the text extraction task, one can now request to include the expanded documents fields, via the RequestedTextExtractionTaskBuilder
builder, calling the new method .withCreateExpandedDocumentFields()
.
new RequestedTextExtractionTaskBuilder()
.withCreateExpandedDocumentFields(true) // default is false
.build()
Then, within each document received, the expanded documents field can be retrieved using the getExpandedDocumentFields()
method.
const expandedFields = document.getExpandedDocumentFields()
expandedFields.getMedia()
Retrieve the session configuration
It is now possible to retrieve the session configuration of a given session, by sessionId
, by calling directly on the IDVClient
the method getSessionConfiguration()
const sessionConfig = await idvClient.getSessionConfiguration(sessionId);