@eluvio/elv-client-js 4.0.69 → 4.0.70
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/ElvClient.js +2 -0
- package/src/walletClient/index.js +4 -1
package/package.json
CHANGED
package/src/ElvClient.js
CHANGED
|
@@ -872,6 +872,7 @@ class ElvClient {
|
|
|
872
872
|
address,
|
|
873
873
|
Sign,
|
|
874
874
|
addEthereumPrefix=true,
|
|
875
|
+
context={}
|
|
875
876
|
}={}) {
|
|
876
877
|
address = address || this.CurrentAccountAddress();
|
|
877
878
|
|
|
@@ -882,6 +883,7 @@ class ElvClient {
|
|
|
882
883
|
spc: await this.ContentSpaceId(),
|
|
883
884
|
iat: Date.now(),
|
|
884
885
|
exp: Date.now() + duration,
|
|
886
|
+
ctx: context
|
|
885
887
|
};
|
|
886
888
|
|
|
887
889
|
let message = `Eluvio Content Fabric Access Token 1.0\n${JSON.stringify(token)}`;
|
|
@@ -469,7 +469,10 @@ class ElvWalletClient {
|
|
|
469
469
|
await this.client.SetRemoteSigner({idToken, tenantId, signerURIs, extraData: { share_email: shareEmail }, unsignedPublicAuth: true});
|
|
470
470
|
|
|
471
471
|
const expiresAt = Date.now() + tokenDuration * 60 * 60 * 1000;
|
|
472
|
-
const fabricToken = await this.client.CreateFabricToken({
|
|
472
|
+
const fabricToken = await this.client.CreateFabricToken({
|
|
473
|
+
duration: tokenDuration * 60 * 60 * 1000,
|
|
474
|
+
context: email ? {usr: {email}} : {}
|
|
475
|
+
});
|
|
473
476
|
const address = this.client.utils.FormatAddress(this.client.CurrentAccountAddress());
|
|
474
477
|
|
|
475
478
|
if(!email) {
|