@eluvio/elv-client-js 4.0.133 → 4.0.134

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.0.133",
3
+ "version": "4.0.134",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -84,7 +84,7 @@ class RemoteSigner extends Ethers.Signer {
84
84
  nonce,
85
85
  force,
86
86
  tid: tenantId,
87
- exp: duration * 60 * 60
87
+ exp: parseInt(duration * 60 * 60)
88
88
  },
89
89
  path: UrlJoin("as", "wlt", "sign", "csat"),
90
90
  headers: {
@@ -517,7 +517,7 @@ class ElvWalletClient {
517
517
  } else {
518
518
  expiresAt = Date.now() + tokenDuration * 60 * 60 * 1000;
519
519
  fabricToken = await this.client.CreateFabricToken({
520
- duration: tokenDuration * 60 * 60 * 1000,
520
+ duration: parseInt(tokenDuration * 60 * 60 * 1000),
521
521
  context: email ? {usr: {email}} : {}
522
522
  });
523
523
  }