@learncard/lca-api-plugin 1.2.21 → 1.2.23

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.
@@ -15174,11 +15174,15 @@ __name(toUint8Array, "toUint8Array");
15174
15174
 
15175
15175
  // src/plugin.ts
15176
15176
  var getNewClient = /* @__PURE__ */ __name(async (url2, learnCard, extraHeaders) => {
15177
- return getClient(url2, async (challenge) => {
15178
- const jwt2 = await learnCard.invoke.getDidAuthVp({ proofFormat: "jwt", challenge });
15179
- if (typeof jwt2 !== "string") throw new Error("Error getting DID-Auth-JWT!");
15180
- return jwt2;
15181
- }, extraHeaders);
15177
+ return getClient(
15178
+ url2,
15179
+ async (challenge) => {
15180
+ const jwt2 = await learnCard.invoke.getDidAuthVp({ proofFormat: "jwt", challenge });
15181
+ if (typeof jwt2 !== "string") throw new Error("Error getting DID-Auth-JWT!");
15182
+ return jwt2;
15183
+ },
15184
+ extraHeaders
15185
+ );
15182
15186
  }, "getNewClient");
15183
15187
  var getEncryptionJwk = /* @__PURE__ */ __name(async (client, learnCard) => {
15184
15188
  const key = await client.utilities.getEncryptionKey.query();
@@ -15444,11 +15448,12 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
15444
15448
  });
15445
15449
  return result || null;
15446
15450
  }, "authenticateWithScoutsSSO"),
15447
- sendLoginVerificationCode: /* @__PURE__ */ __name(async (_learnCard, email3) => {
15451
+ sendLoginVerificationCode: /* @__PURE__ */ __name(async (_learnCard, email3, locale) => {
15448
15452
  await initialized;
15449
15453
  await updateLearnCard(_learnCard);
15450
15454
  const result = await client.firebase.sendLoginVerificationCode.mutate({
15451
- email: email3
15455
+ email: email3,
15456
+ locale
15452
15457
  });
15453
15458
  return result;
15454
15459
  }, "sendLoginVerificationCode"),