File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
examples/doc-scan/src/main/java/com/yoti/docscan/demo/service Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public CreateSessionResult createSession() throws DocScanException {
6060
6161 SessionSpec sessionSpec = SessionSpec .builder ()
6262 .withClientSessionTokenTtl (600 )
63- .withResourcesTtl (90000 )
63+ .withResourcesTtl (604800 )
6464 .withUserTrackingId ("some-user-tracking-id" )
6565 .withSdkConfig (sdkConfig )
6666 .withRequestedCheck (
@@ -69,13 +69,13 @@ public CreateSessionResult createSession() throws DocScanException {
6969 )
7070 .withRequestedCheck (
7171 RequestedFaceMatchCheck .builder ()
72- .withManualCheckAlways ()
72+ .withManualCheckFallback ()
7373 .build ()
7474 )
7575 .withRequestedCheck (
7676 RequestedLivenessCheck .builder ()
77- .forZoomLiveness ()
78- .withMaxRetries (1 )
77+ .forStaticLiveness ()
78+ .withMaxRetries (3 )
7979 .build ()
8080 )
8181 .withRequestedCheck (
@@ -97,12 +97,12 @@ public CreateSessionResult createSession() throws DocScanException {
9797 )
9898 .withRequestedTask (
9999 RequestedIdDocTextExtractionTask .builder ()
100- .withManualCheckAlways ()
100+ .withManualCheckFallback ()
101101 .build ()
102102 )
103103 .withRequestedTask (
104104 RequestedSupplementaryDocTextExtractionTask .builder ()
105- .withManualCheckAlways ()
105+ .withManualCheckFallback ()
106106 .build ()
107107 )
108108 .withRequiredDocument (
You can’t perform that action at this time.
0 commit comments