@0xpolygonid/js-sdk 1.45.0 → 1.46.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.
@@ -7423,8 +7423,9 @@ var AuthHandler = class extends AbstractMessageHandler {
7423
7423
  mediaType: "application/iden3-zkp-json" /* ZKPMessage */
7424
7424
  };
7425
7425
  }
7426
+ const to = authRequest.to ? DID8.parse(authRequest.to) : did;
7426
7427
  const authResponse = await this.handleAuthRequest(authRequest, {
7427
- senderDid: did,
7428
+ senderDid: to,
7428
7429
  mediaType: opts.mediaType,
7429
7430
  bypassProofsCache: opts.bypassProofsCache,
7430
7431
  allowExpiredCredentials: opts.allowExpiredCredentials
@@ -7436,7 +7437,7 @@ var AuthHandler = class extends AbstractMessageHandler {
7436
7437
  opts.preferredAuthProvingMethod,
7437
7438
  authRequest.body.accept
7438
7439
  ),
7439
- senderDID: did
7440
+ senderDID: to
7440
7441
  });
7441
7442
  const token = byteDecoder.decode(
7442
7443
  await this._packerMgr.pack(opts.mediaType, msgBytes, packerOpts)