@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.
@@ -7988,8 +7988,9 @@ var AuthHandler = class extends AbstractMessageHandler {
7988
7988
  mediaType: "application/iden3-zkp-json" /* ZKPMessage */
7989
7989
  };
7990
7990
  }
7991
+ const to = authRequest.to ? import_js_iden3_core22.DID.parse(authRequest.to) : did;
7991
7992
  const authResponse = await this.handleAuthRequest(authRequest, {
7992
- senderDid: did,
7993
+ senderDid: to,
7993
7994
  mediaType: opts.mediaType,
7994
7995
  bypassProofsCache: opts.bypassProofsCache,
7995
7996
  allowExpiredCredentials: opts.allowExpiredCredentials
@@ -8001,7 +8002,7 @@ var AuthHandler = class extends AbstractMessageHandler {
8001
8002
  opts.preferredAuthProvingMethod,
8002
8003
  authRequest.body.accept
8003
8004
  ),
8004
- senderDID: did
8005
+ senderDID: to
8005
8006
  });
8006
8007
  const token = byteDecoder.decode(
8007
8008
  await this._packerMgr.pack(opts.mediaType, msgBytes, packerOpts)