@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.
@@ -6859,6 +6859,7 @@ var AuthMethod = /* @__PURE__ */ ((AuthMethod2) => {
6859
6859
  AuthMethod2["AUTHV3"] = "authV3";
6860
6860
  AuthMethod2["AUTHV3_8_32"] = "authV3-8-32";
6861
6861
  AuthMethod2["ETH_IDENTITY"] = "ethIdentity";
6862
+ AuthMethod2["EMBEDDED_AUTH"] = "embeddedAuth";
6862
6863
  return AuthMethod2;
6863
6864
  })(AuthMethod || {});
6864
6865
 
@@ -7102,6 +7103,12 @@ var processProofAuth = async (to, proofService, opts) => {
7102
7103
  opts.acceptProfile = defaultAcceptProfile;
7103
7104
  }
7104
7105
  switch (opts.acceptProfile.env) {
7106
+ case "application/iden3comm-plain-json" /* PlainMessage */:
7107
+ return {
7108
+ authProof: {
7109
+ authMethod: "embeddedAuth" /* EMBEDDED_AUTH */
7110
+ }
7111
+ };
7105
7112
  case "application/iden3-zkp-json" /* ZKPMessage */:
7106
7113
  if (!opts.acceptProfile.circuits) {
7107
7114
  throw new Error("Circuit not specified in accept profile");
@@ -11539,6 +11546,10 @@ var OnChainZKPVerifier = class _OnChainZKPVerifier {
11539
11546
  encodedAuthProof = packEthIdentityProof(authProof.userDid);
11540
11547
  break;
11541
11548
  }
11549
+ case "embeddedAuth" /* EMBEDDED_AUTH */: {
11550
+ encodedAuthProof = "0x";
11551
+ break;
11552
+ }
11542
11553
  default:
11543
11554
  throw new Error("auth proof must use method authV2, authV3, authV3-8-32 or ethIdentity");
11544
11555
  }