Skip to content

Commit

Permalink
Updated IDV Example Defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jul 25, 2024
1 parent 2d5b3ac commit 5104d2b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/doc-scan/app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function show(Request $request, DocScanClient $client)

$sessionSpec = (new SessionSpecificationBuilder())
->withClientSessionTokenTtl(600)
->withResourcesTtl(90000)
->withResourcesTtl(604800)
->withUserTrackingId('some-user-tracking-id')
//For Identity Profile Requirements Object
//->withBlockBiometricConsent(false) //User needs to provide consent for the liveness detection
Expand All @@ -99,7 +99,8 @@ public function show(Request $request, DocScanClient $client)
)
->withRequestedCheck(
(new RequestedLivenessCheckBuilder())
->forZoomLiveness()
->forStaticLiveness()
->withMaxRetries(3)
->build()
)
->withRequestedCheck(
Expand All @@ -109,7 +110,7 @@ public function show(Request $request, DocScanClient $client)
)
->withRequestedCheck(
(new RequestedFaceMatchCheckBuilder())
->withManualCheckAlways()
->withManualCheckFallback()
->build()
)
->withRequestedCheck(
Expand All @@ -127,20 +128,20 @@ public function show(Request $request, DocScanClient $client)
)
->withRequestedTask(
(new RequestedTextExtractionTaskBuilder())
->withManualCheckAlways()
->withManualCheckFallback()
->withChipDataDesired()
->withCreateExpandedDocumentFields(true)
->build()
)
->withRequestedTask(
(new RequestedSupplementaryDocTextExtractionTaskBuilder())
->withManualCheckAlways()
->withManualCheckFallback()
->build()
)
->withSdkConfig(
(new SdkConfigBuilder())
->withAllowsCameraAndUpload()
->withPrimaryColour('#2d9fff')
->withPrimaryColour('#2875BC')
->withSecondaryColour('#FFFFFF')
->withFontColour('#FFFFFF')
->withLocale('en-GB')
Expand Down

0 comments on commit 5104d2b

Please sign in to comment.