diff --git a/examples/idv-identity-checks/src/controllers/index.controller.js b/examples/idv-identity-checks/src/controllers/index.controller.js index fb2b53bc..3edec87b 100644 --- a/examples/idv-identity-checks/src/controllers/index.controller.js +++ b/examples/idv-identity-checks/src/controllers/index.controller.js @@ -24,8 +24,8 @@ async function createSession() { }; const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withSubject(subject) .withIdentityProfileRequirements(identityProfileRequirements) diff --git a/examples/idv/src/controllers/use-cases/allow.expired.document.check.controller.js b/examples/idv/src/controllers/use-cases/allow.expired.document.check.controller.js index 890977c8..b31a38f4 100644 --- a/examples/idv/src/controllers/use-cases/allow.expired.document.check.controller.js +++ b/examples/idv/src/controllers/use-cases/allow.expired.document.check.controller.js @@ -26,8 +26,8 @@ async function createSession() { ); const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedTask( new RequestedTextExtractionTaskBuilder() diff --git a/examples/idv/src/controllers/use-cases/allow.non.latin.document.check.controller.js b/examples/idv/src/controllers/use-cases/allow.non.latin.document.check.controller.js index b600dc19..dc6b14b2 100644 --- a/examples/idv/src/controllers/use-cases/allow.non.latin.document.check.controller.js +++ b/examples/idv/src/controllers/use-cases/allow.non.latin.document.check.controller.js @@ -26,8 +26,8 @@ async function createSession() { ); const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedTask( new RequestedTextExtractionTaskBuilder() diff --git a/examples/idv/src/controllers/use-cases/authenticity.and.identity.check.controller.js b/examples/idv/src/controllers/use-cases/authenticity.and.identity.check.controller.js index 4ec19347..28f48f87 100644 --- a/examples/idv/src/controllers/use-cases/authenticity.and.identity.check.controller.js +++ b/examples/idv/src/controllers/use-cases/authenticity.and.identity.check.controller.js @@ -19,8 +19,8 @@ async function createSession() { ); const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedCheck( new RequestedDocumentAuthenticityCheckBuilder() diff --git a/examples/idv/src/controllers/use-cases/document.comparison.check.controller.js b/examples/idv/src/controllers/use-cases/document.comparison.check.controller.js index 50249842..9866e1b9 100644 --- a/examples/idv/src/controllers/use-cases/document.comparison.check.controller.js +++ b/examples/idv/src/controllers/use-cases/document.comparison.check.controller.js @@ -22,8 +22,8 @@ async function createSession() { ); const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedCheck( new RequestedIdDocumentComparisonCheckBuilder() diff --git a/examples/idv/src/controllers/use-cases/face.comparison.check.controller.js b/examples/idv/src/controllers/use-cases/face.comparison.check.controller.js index 23261195..c0f6cc95 100644 --- a/examples/idv/src/controllers/use-cases/face.comparison.check.controller.js +++ b/examples/idv/src/controllers/use-cases/face.comparison.check.controller.js @@ -16,8 +16,8 @@ async function createSession() { const idvClient = new IDVClient(config.YOTI_CLIENT_SDK_ID, config.YOTI_PEM); const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedCheck( diff --git a/examples/idv/src/controllers/use-cases/face.match.check.controller.js b/examples/idv/src/controllers/use-cases/face.match.check.controller.js index 50092c96..cfada9a5 100644 --- a/examples/idv/src/controllers/use-cases/face.match.check.controller.js +++ b/examples/idv/src/controllers/use-cases/face.match.check.controller.js @@ -18,8 +18,8 @@ async function createSession() { ); const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedCheck( diff --git a/examples/idv/src/controllers/use-cases/watchlist.check.controller.js b/examples/idv/src/controllers/use-cases/watchlist.check.controller.js index 1664b49f..2e6d87d5 100644 --- a/examples/idv/src/controllers/use-cases/watchlist.check.controller.js +++ b/examples/idv/src/controllers/use-cases/watchlist.check.controller.js @@ -59,8 +59,8 @@ async function createSession() { */ const sessionSpec = new SessionSpecificationBuilder() - .withClientSessionTokenTtl(600) - .withResourcesTtl(86400) + .withClientSessionTokenTtl(600) // 10 minutes + .withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required) .withUserTrackingId('some-user-tracking-id') .withRequestedCheck( new RequestedWatchlistScreeningCheckBuilder()