From 4883dc439596b854fdce7ca96e0308742acb9f8f Mon Sep 17 00:00:00 2001 From: Nikhil Pankhania Date: Thu, 9 Nov 2023 17:33:54 +0000 Subject: [PATCH] adjust defaults for example project --- .../doc-scan/app/Http/Controllers/HomeController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/doc-scan/app/Http/Controllers/HomeController.php b/examples/doc-scan/app/Http/Controllers/HomeController.php index 5aae0ea8..5df232e0 100644 --- a/examples/doc-scan/app/Http/Controllers/HomeController.php +++ b/examples/doc-scan/app/Http/Controllers/HomeController.php @@ -80,7 +80,7 @@ public function show(Request $request, DocScanClient $client) $sessionSpec = (new SessionSpecificationBuilder()) ->withClientSessionTokenTtl(600) - ->withResourcesTtl(90000) + ->withResourcesTtl(604800) ->withUserTrackingId('some-user-tracking-id') ->withRequestedCheck( (new RequestedDocumentAuthenticityCheckBuilder()) @@ -88,7 +88,7 @@ public function show(Request $request, DocScanClient $client) ) ->withRequestedCheck( (new RequestedLivenessCheckBuilder()) - ->forZoomLiveness() + ->forStaticLiveness() ->build() ) ->withRequestedCheck( @@ -98,7 +98,7 @@ public function show(Request $request, DocScanClient $client) ) ->withRequestedCheck( (new RequestedFaceMatchCheckBuilder()) - ->withManualCheckAlways() + ->withManualCheckFallback() ->build() ) ->withRequestedCheck( @@ -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')