@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 CHANGED
@@ -3481,7 +3481,10 @@ var _TinyCloudNode = class _TinyCloudNode {
3481
3481
  delegationCid: params.session.delegationCid,
3482
3482
  jwk: params.session.jwk,
3483
3483
  spaceId: params.session.spaceId,
3484
- verificationMethod: params.session.verificationMethod
3484
+ // Session storage carries the verification method as a DID URL
3485
+ // (`did:key:...#key-id`). The Rust UCAN builder expects the principal
3486
+ // DID here and rejects the fragment as an invalid audience DID.
3487
+ verificationMethod: params.session.verificationMethod.split("#", 1)[0]
3485
3488
  };
3486
3489
  const result = this.wasmBindings.createDelegation(
3487
3490
  wasmSession,