@eluvio/elv-client-js 3.2.5 → 3.2.6
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.
|
@@ -349,19 +349,23 @@ var ElvWalletClient = /*#__PURE__*/function () {
|
|
|
349
349
|
throw Error("ElvWalletClient: Provided authorization token has expired");
|
|
350
350
|
|
|
351
351
|
case 10:
|
|
352
|
+
if (!decodedToken.clusterToken) {
|
|
353
|
+
_context4.next = 13;
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
_context4.next = 13;
|
|
358
|
+
return this.client.SetRemoteSigner({
|
|
359
|
+
authToken: decodedToken.clusterToken
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
case 13:
|
|
352
363
|
this.client.SetStaticToken({
|
|
353
364
|
token: decodedToken.fabricToken
|
|
354
365
|
});
|
|
355
|
-
|
|
356
|
-
if (decodedToken.clusterToken) {
|
|
357
|
-
this.client.SetRemoteSigner({
|
|
358
|
-
authToken: decodedToken.clusterToken
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
|
|
362
366
|
return _context4.abrupt("return", this.SetAuthorization(decodedToken));
|
|
363
367
|
|
|
364
|
-
case
|
|
368
|
+
case 15:
|
|
365
369
|
case "end":
|
|
366
370
|
return _context4.stop();
|
|
367
371
|
}
|
package/package.json
CHANGED
|
@@ -246,12 +246,12 @@ class ElvWalletClient {
|
|
|
246
246
|
throw Error("ElvWalletClient: Provided authorization token has expired");
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
this.client.SetStaticToken({token: decodedToken.fabricToken});
|
|
250
|
-
|
|
251
249
|
if(decodedToken.clusterToken) {
|
|
252
|
-
this.client.SetRemoteSigner({authToken: decodedToken.clusterToken});
|
|
250
|
+
await this.client.SetRemoteSigner({authToken: decodedToken.clusterToken});
|
|
253
251
|
}
|
|
254
252
|
|
|
253
|
+
this.client.SetStaticToken({token: decodedToken.fabricToken});
|
|
254
|
+
|
|
255
255
|
return this.SetAuthorization(decodedToken);
|
|
256
256
|
}
|
|
257
257
|
|