@tinycloud/node-sdk 3.0.0-beta.17 → 3.0.0-beta.19

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/index.cjs CHANGED
@@ -24255,8 +24255,7 @@ var _TinyCloudNode = class _TinyCloudNode {
24255
24255
  const jwk = mySession.jwk;
24256
24256
  const { abilities, rawAbilities } = this.buildActivationAbilities(delegation);
24257
24257
  const now = /* @__PURE__ */ new Date();
24258
- const maxExpiry = new Date(now.getTime() + 60 * 60 * 1e3);
24259
- const expirationTime = delegation.expiry < maxExpiry ? delegation.expiry : maxExpiry;
24258
+ const expirationTime = delegation.expiry;
24260
24259
  const prepared = this.wasmBindings.prepareSession({
24261
24260
  abilities,
24262
24261
  address: this.wasmBindings.ensureEip55(mySession.address),
@@ -24360,8 +24359,7 @@ var _TinyCloudNode = class _TinyCloudNode {
24360
24359
  );
24361
24360
  }
24362
24361
  const now = /* @__PURE__ */ new Date();
24363
- const expiryMs = params.expiryMs ?? 60 * 60 * 1e3;
24364
- const requestedExpiry = new Date(now.getTime() + expiryMs);
24362
+ const requestedExpiry = params.expiryMs === void 0 ? parentDelegation.expiry : new Date(now.getTime() + params.expiryMs);
24365
24363
  const actualExpiry = requestedExpiry > parentDelegation.expiry ? parentDelegation.expiry : requestedExpiry;
24366
24364
  const abilities = {};
24367
24365
  const rawAbilities = {};