@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.js CHANGED
@@ -3466,7 +3466,10 @@ var _TinyCloudNode = class _TinyCloudNode {
3466
3466
  delegationCid: params.session.delegationCid,
3467
3467
  jwk: params.session.jwk,
3468
3468
  spaceId: params.session.spaceId,
3469
- verificationMethod: params.session.verificationMethod
3469
+ // Session storage carries the verification method as a DID URL
3470
+ // (`did:key:...#key-id`). The Rust UCAN builder expects the principal
3471
+ // DID here and rejects the fragment as an invalid audience DID.
3472
+ verificationMethod: params.session.verificationMethod.split("#", 1)[0]
3470
3473
  };
3471
3474
  const result = this.wasmBindings.createDelegation(
3472
3475
  wasmSession,