@eluvio/elv-client-js 4.0.102 → 4.0.103

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.102",
3
+ "version": "4.0.103",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -73,7 +73,7 @@ class RemoteSigner extends Ethers.Signer {
73
73
  this.signer = this.provider.getSigner(this.address);
74
74
  }
75
75
 
76
- async RetrieveCSAT({email, nonce, force=false}) {
76
+ async RetrieveCSAT({email, nonce, tenantId, force=false}) {
77
77
  nonce = nonce || Utils.B58(UUID.parse(UUID.v4()));
78
78
 
79
79
  let response = await Utils.ResponseToJson(
@@ -82,7 +82,8 @@ class RemoteSigner extends Ethers.Signer {
82
82
  body: {
83
83
  email,
84
84
  nonce,
85
- force
85
+ force,
86
+ tid: tenantId
86
87
  },
87
88
  path: UrlJoin("as", "wlt", "sign", "csat"),
88
89
  headers: {
@@ -487,7 +487,7 @@ class ElvWalletClient {
487
487
  let fabricToken, expiresAt;
488
488
  if(createRemoteToken && this.client.signer.remoteSigner) {
489
489
  expiresAt = Date.now() + 24 * 60 * 60 * 1000;
490
- const tokenResponse = await this.client.signer.RetrieveCSAT({email, nonce, force});
490
+ const tokenResponse = await this.client.signer.RetrieveCSAT({email, nonce, tenantId, force});
491
491
  fabricToken = tokenResponse.token;
492
492
  nonce = tokenResponse.nonce;
493
493
  } else {