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 Oct 25, 2023
1 parent 25ae527 commit 3b14bc5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public CreateSessionResult createSession() throws DocScanException {

SessionSpec sessionSpec = SessionSpec.builder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
.withResourcesTtl(604800)
.withUserTrackingId("some-user-tracking-id")
.withSdkConfig(sdkConfig)
.withRequestedCheck(
Expand All @@ -69,13 +69,13 @@ public CreateSessionResult createSession() throws DocScanException {
)
.withRequestedCheck(
RequestedFaceMatchCheck.builder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequestedCheck(
RequestedLivenessCheck.builder()
.forZoomLiveness()
.withMaxRetries(1)
.forStaticLiveness()
.withMaxRetries(3)
.build()
)
.withRequestedCheck(
Expand All @@ -97,12 +97,12 @@ public CreateSessionResult createSession() throws DocScanException {
)
.withRequestedTask(
RequestedIdDocTextExtractionTask.builder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequestedTask(
RequestedSupplementaryDocTextExtractionTask.builder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequiredDocument(
Expand Down

0 comments on commit 3b14bc5

Please sign in to comment.