@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.
- package/dist/browser/esm/index.js +3 -2
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.global.js +1 -1
- package/dist/browser/umd/index.global.js.map +1 -1
- package/dist/node/cjs/index.cjs +3 -2
- package/dist/node/cjs/index.cjs.map +1 -1
- package/dist/node/esm/index.js +3 -2
- package/dist/node/esm/index.js.map +1 -1
- package/dist/types/iden3comm/handlers/auth.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/iden3comm/handlers/auth.ts +4 -3
|
@@ -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:
|
|
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:
|
|
7440
|
+
senderDID: to
|
|
7440
7441
|
});
|
|
7441
7442
|
const token = byteDecoder.decode(
|
|
7442
7443
|
await this._packerMgr.pack(opts.mediaType, msgBytes, packerOpts)
|