Skip to content

Commit

Permalink
Fixed eslint (double-quotes)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-yoti committed Jan 2, 2024
1 parent 365a4b9 commit 13e132c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions examples/idv-identity-checks/src/controllers/index.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const {
IDVClient,
SessionSpecificationBuilder,
SdkConfigBuilder,
} = require("yoti");
const config = require("../../config");
} = require('yoti');
const config = require('../../config');

/**
* Create an IDV session.
Expand All @@ -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)
Expand All @@ -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 });
}
};

0 comments on commit 13e132c

Please sign in to comment.