@0xpolygonid/js-sdk 1.41.0 → 1.41.1

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.
@@ -7415,6 +7415,7 @@ var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
7415
7415
  AuthMethod2["AUTHV3"] = "authV3";
7416
7416
  AuthMethod2["AUTHV3_8_32"] = "authV3-8-32";
7417
7417
  AuthMethod2["ETH_IDENTITY"] = "ethIdentity";
7418
+ AuthMethod2["EMBEDDED_AUTH"] = "embeddedAuth";
7418
7419
  return AuthMethod2;
7419
7420
  })(AuthMethod || {});
7420
7421
 
@@ -7658,6 +7659,12 @@ var processProofAuth = async (to, proofService, opts) => {
7658
7659
  opts.acceptProfile = defaultAcceptProfile;
7659
7660
  }
7660
7661
  switch (opts.acceptProfile.env) {
7662
+ case "application/iden3comm-plain-json" /* PlainMessage */:
7663
+ return {
7664
+ authProof: {
7665
+ authMethod: "embeddedAuth" /* EMBEDDED_AUTH */
7666
+ }
7667
+ };
7661
7668
  case "application/iden3-zkp-json" /* ZKPMessage */:
7662
7669
  if (!opts.acceptProfile.circuits) {
7663
7670
  throw new Error("Circuit not specified in accept profile");
@@ -12090,6 +12097,10 @@ var OnChainZKPVerifier = class _OnChainZKPVerifier {
12090
12097
  encodedAuthProof = packEthIdentityProof(authProof.userDid);
12091
12098
  break;
12092
12099
  }
12100
+ case "embeddedAuth" /* EMBEDDED_AUTH */: {
12101
+ encodedAuthProof = "0x";
12102
+ break;
12103
+ }
12093
12104
  default:
12094
12105
  throw new Error("auth proof must use method authV2, authV3, authV3-8-32 or ethIdentity");
12095
12106
  }