@vpdev2/metakyc 1.0.87 → 1.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1970,7 +1970,7 @@ class ct {
1970
1970
  const d = ((o = r == null ? void 0 : r.identityProviders) == null ? void 0 : o.sardinai) || {};
1971
1971
  return {
1972
1972
  clientId: d.clientId || a.clientId,
1973
- sessionKey: d.sessionKey || a.sessionKey,
1973
+ sessionKey: d.sessionKey || (r == null ? void 0 : r.sardinSessionKey) || a.sessionKey,
1974
1974
  environment: d.environment || a.environment || "production",
1975
1975
  flow: d.flow || a.flow,
1976
1976
  region: d.region,
@@ -7160,7 +7160,7 @@ function ie(e, t) {
7160
7160
  const r = Jr.exec(a);
7161
7161
  return r ? t(r[1]) : e;
7162
7162
  }
7163
- const Yt = "1.0.87", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7163
+ const Yt = "1.0.88", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7164
7164
  locale: e,
7165
7165
  fetchTranslations: t,
7166
7166
  children: a
@@ -7904,8 +7904,8 @@ function Ii() {
7904
7904
  l.current = !0, r(!0), o(null);
7905
7905
  try {
7906
7906
  if (A.applicantAdditionalDatas || (A.applicantAdditionalDatas = []), (S = t.identityProviders) != null && S.sardinai) {
7907
- const N = u();
7908
- _.debug(`SardinAI session key generated: ${N}`), A.applicantAdditionalDatas.push({
7907
+ const N = t.sardinSessionKey || u();
7908
+ _.debug(`SardinAI session key: ${N} (pre-generated: ${!!t.sardinSessionKey})`), A.applicantAdditionalDatas.push({
7909
7909
  paramName: "sessionKey",
7910
7910
  value: N
7911
7911
  });