@eluvio/elv-client-js 4.0.38 → 4.0.39

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.38",
3
+ "version": "4.0.39",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -672,7 +672,7 @@ class ElvWalletClient {
672
672
  return response;
673
673
  }
674
674
 
675
- async SetCodeAuth({code, authToken}) {
675
+ async SetCodeAuth({code, address, authToken}) {
676
676
  await Utils.ResponseToJson(
677
677
  this.client.authClient.MakeAuthServiceRequest({
678
678
  path: UrlJoin("as", "wlt", "login", "session", code),
@@ -684,7 +684,11 @@ class ElvWalletClient {
684
684
  op: "set",
685
685
  id: code,
686
686
  format: "auth_token",
687
- payload: authToken
687
+ payload: JSON.stringify({
688
+ addr: Utils.FormatAddress(address),
689
+ eth: address ? `ikms${Utils.AddressToHash(address)}` : "",
690
+ token: authToken
691
+ })
688
692
  }
689
693
  })
690
694
  );