From 13e132c25c0bc0f48d54c310a96466cd0961b93f Mon Sep 17 00:00:00 2001 From: laurent Date: Tue, 2 Jan 2024 13:08:03 +0000 Subject: [PATCH] Fixed eslint (double-quotes) --- .../src/controllers/index.controller.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/idv-identity-checks/src/controllers/index.controller.js b/examples/idv-identity-checks/src/controllers/index.controller.js index da318612..fb2b53bc 100644 --- a/examples/idv-identity-checks/src/controllers/index.controller.js +++ b/examples/idv-identity-checks/src/controllers/index.controller.js @@ -2,8 +2,8 @@ const { IDVClient, SessionSpecificationBuilder, SdkConfigBuilder, -} = require("yoti"); -const config = require("../../config"); +} = require('yoti'); +const config = require('../../config'); /** * Create an IDV session. @@ -12,28 +12,28 @@ async function createSession() { const idvClient = new IDVClient(config.YOTI_CLIENT_SDK_ID, config.YOTI_PEM); const subject = { - subject_id: "subject_id_string", + subject_id: 'subject_id_string', }; const identityProfileRequirements = { - trust_framework: "UK_TFIDA", + trust_framework: 'UK_TFIDA', scheme: { - type: "DBS", - objective: "BASIC", + type: 'DBS', + objective: 'BASIC', }, }; const sessionSpec = new SessionSpecificationBuilder() .withClientSessionTokenTtl(600) .withResourcesTtl(86400) - .withUserTrackingId("some-user-tracking-id") + .withUserTrackingId('some-user-tracking-id') .withSubject(subject) .withIdentityProfileRequirements(identityProfileRequirements) .withSdkConfig( new SdkConfigBuilder() - .withPrimaryColour("#2d9fff") - .withLocale("en-GB") - .withPresetIssuingCountry("GBR") + .withPrimaryColour('#2d9fff') + .withLocale('en-GB') + .withPresetIssuingCountry('GBR') .withSuccessUrl(`${config.YOTI_APP_BASE_URL}/success`) .withErrorUrl(`${config.YOTI_APP_BASE_URL}/error`) .withAllowHandoff(true) @@ -51,10 +51,10 @@ module.exports = async (req, res) => { req.session.IDV_SESSION_ID = session.getSessionId(); req.session.IDV_SESSION_TOKEN = session.getClientSessionToken(); - res.render("pages/index", { + res.render('pages/index', { iframeUrl: `${config.YOTI_IDV_IFRAME_URL}?sessionID=${req.session.IDV_SESSION_ID}&sessionToken=${req.session.IDV_SESSION_TOKEN}`, }); } catch (error) { - res.render("pages/error", { error }); + res.render('pages/error', { error }); } };