@learncard/learn-cloud-plugin 2.1.1 → 2.1.2

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.
@@ -15706,7 +15706,7 @@ var getLearnCloudClient = /* @__PURE__ */ __name(async (url, learnCard) => {
15706
15706
  return jwt;
15707
15707
  });
15708
15708
  }, "getLearnCloudClient");
15709
- var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, unencryptedFields = [], unencryptedCustomFields = []) => {
15709
+ var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, unencryptedFields = [], unencryptedCustomFields = [], automaticallyAssociateDids = true) => {
15710
15710
  let learnCard = initialLearnCard;
15711
15711
  learnCard.debug?.("Adding LearnCloud Plugin");
15712
15712
  let client = await getLearnCloudClient(url, learnCard);
@@ -15723,7 +15723,7 @@ var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, u
15723
15723
  const oldDid = learnCard.id.did();
15724
15724
  const newDid = _learnCard.id.did();
15725
15725
  if (oldDid !== newDid) {
15726
- if (!dids.includes(newDid)) {
15726
+ if (!dids.includes(newDid) && automaticallyAssociateDids) {
15727
15727
  const presentation = await _learnCard.invoke.getDidAuthVp();
15728
15728
  await client.user.addDid.mutate({ presentation });
15729
15729
  if (newDid.split(":")[1] === "web") {