@learncard/lca-api-plugin 1.2.21 → 1.2.22
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/lca-api-plugin.cjs.development.cjs +12 -7
- package/dist/lca-api-plugin.cjs.development.cjs.map +2 -2
- package/dist/lca-api-plugin.cjs.production.min.cjs +1 -1
- package/dist/lca-api-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/lca-api-plugin.esm.js +12 -7
- package/dist/lca-api-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +17 -1
- package/package.json +5 -5
- package/src/plugin.ts +11 -6
- package/src/types.ts +4 -1
|
@@ -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(
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
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"),
|