@tinycloud/node-sdk 2.6.4-beta.0 → 2.6.4-beta.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/core.cjs +4 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +4 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20470,7 +20470,10 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
20470
20470
|
delegationCid: params.session.delegationCid,
|
|
20471
20471
|
jwk: params.session.jwk,
|
|
20472
20472
|
spaceId: params.session.spaceId,
|
|
20473
|
-
|
|
20473
|
+
// Session storage carries the verification method as a DID URL
|
|
20474
|
+
// (`did:key:...#key-id`). The Rust UCAN builder expects the principal
|
|
20475
|
+
// DID here and rejects the fragment as an invalid audience DID.
|
|
20476
|
+
verificationMethod: params.session.verificationMethod.split("#", 1)[0]
|
|
20474
20477
|
};
|
|
20475
20478
|
const result = this.wasmBindings.createDelegation(
|
|
20476
20479
|
wasmSession,
|