v3.22.0
Added
Support of DBS / RTW / RTR verification via IDV (doc-scan).
With Yoti platform now enabling verification of identity profile through the IDV (doc-scan), this new SDK version exposes the feature.
- Create a doc-scan session with an identity profile verification:
const identityProfileRequirements = {
trust_framework: 'UK_TFIDA',
scheme: {
type: 'DBS',
objective: 'BASIC',
}
}
const sdkConfig = new SdkConfigBuilder()
.withAllowHandoff(true)
.build()
const sessionSpec = new SessionSpecificationBuilder()
.withSubject(subject)
.withIdentityProfileRequirements(identityProfileRequirements)
.withSdkConfig(sdkConfig)
.build();
See examples for more options on identityProfileRequirements
.
- Handle session result with identity profile:
const sessionResult = await docScanClient.getSession(sessionId);
const identityProfile = sessionResult.getIdentityProfile()
const identityProfileReport = identityProfile.getIdentityProfileReport
// identityProfileReport.getTrustFramework()
// identityProfileReport.getSchemesCompliance()
Examples
See examples for more details about the on identityProfileReport
.