Skip to content

Commit

Permalink
Updated doc-scan example to illustrate the use of Watchlist Advanced …
Browse files Browse the repository at this point in the history
…Config for a custom account. (Commented code only)
  • Loading branch information
dhivya-pattabhiraman committed Jan 18, 2022
1 parent 809befb commit b2751c2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions examples/doc-scan/src/controllers/index.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@ async function createSession() {
.build())
.build();

/**
* Example of setting up Watchlist Advanced Config for a custom account
* with search profile
*
const {
RequestedCustomAccountWatchlistAdvancedCaConfigBuilder,
RequestedSearchProfileSourcesBuilder,
} = require('yoti');
const customAccountWatchListAdvancedCaConfig =
new RequestedCustomAccountWatchlistAdvancedCaConfigBuilder()
.withRemoveDeceased(false)
.withShareUrl(false)
.withApiKey('your-api-key')
.withMonitoring(false)
.withClientRef('your-client-reference')
.withTags({ tag1: 'tag1-value' })
.withSources(new RequestedSearchProfileSourcesBuilder()
.withSearchProfile('your-search-profile-id')
.build())
.withMatchingStrategy(new RequestedFuzzyMatchingStrategyBuilder()
.withFuzziness(0.5)
.build())
.build();
*/

const sessionSpec = new SessionSpecificationBuilder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
Expand Down

0 comments on commit b2751c2

Please sign in to comment.