Skip to content

Commit

Permalink
adjust defaults for example project
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilPank committed Nov 9, 2023
1 parent 8160327 commit 4883dc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/doc-scan/app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ public function show(Request $request, DocScanClient $client)

$sessionSpec = (new SessionSpecificationBuilder())
->withClientSessionTokenTtl(600)
->withResourcesTtl(90000)
->withResourcesTtl(604800)
->withUserTrackingId('some-user-tracking-id')
->withRequestedCheck(
(new RequestedDocumentAuthenticityCheckBuilder())
->build()
)
->withRequestedCheck(
(new RequestedLivenessCheckBuilder())
->forZoomLiveness()
->forStaticLiveness()
->build()
)
->withRequestedCheck(
Expand All @@ -98,7 +98,7 @@ public function show(Request $request, DocScanClient $client)
)
->withRequestedCheck(
(new RequestedFaceMatchCheckBuilder())
->withManualCheckAlways()
->withManualCheckFallback()
->build()
)
->withRequestedCheck(
Expand All @@ -116,19 +116,19 @@ public function show(Request $request, DocScanClient $client)
)
->withRequestedTask(
(new RequestedTextExtractionTaskBuilder())
->withManualCheckAlways()
->withManualCheckFallback()
->withChipDataDesired()
->build()
)
->withRequestedTask(
(new RequestedSupplementaryDocTextExtractionTaskBuilder())
->withManualCheckAlways()
->withManualCheckFallback()
->build()
)
->withSdkConfig(
(new SdkConfigBuilder())
->withAllowsCameraAndUpload()
->withPrimaryColour('#2d9fff')
->withPrimaryColour('#eee')
->withSecondaryColour('#FFFFFF')
->withFontColour('#FFFFFF')
->withLocale('en-GB')
Expand Down

0 comments on commit 4883dc4

Please sign in to comment.