@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
package/dist/node/cjs/index.cjs
CHANGED
|
@@ -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:
|
|
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:
|
|
8005
|
+
senderDID: to
|
|
8005
8006
|
});
|
|
8006
8007
|
const token = byteDecoder.decode(
|
|
8007
8008
|
await this._packerMgr.pack(opts.mediaType, msgBytes, packerOpts)
|