@eluvio/elv-client-js 4.0.133 → 4.0.135
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 +1 -1
- package/src/RemoteSigner.js +1 -1
- package/src/walletClient/index.js +2 -2
package/package.json
CHANGED
package/src/RemoteSigner.js
CHANGED
|
@@ -510,14 +510,14 @@ class ElvWalletClient {
|
|
|
510
510
|
|
|
511
511
|
let fabricToken, expiresAt;
|
|
512
512
|
if(createRemoteToken && this.client.signer.remoteSigner) {
|
|
513
|
-
expiresAt = Date.now() +
|
|
513
|
+
expiresAt = Date.now() + tokenDuration * 60 * 60 * 1000;
|
|
514
514
|
const tokenResponse = await this.client.signer.RetrieveCSAT({email, nonce, tenantId, force, duration: tokenDuration});
|
|
515
515
|
fabricToken = tokenResponse.token;
|
|
516
516
|
nonce = tokenResponse.nonce;
|
|
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
|
}
|