@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/dist/ElvWalletClient-min.js +3 -3
- package/dist/ElvWalletClient-node-min.js +9 -9
- package/dist/src/walletClient/ClientMethods.js +715 -568
- package/dist/src/walletClient/Configuration.js +1 -1
- package/dist/src/walletClient/Utils.js +3 -1
- package/dist/src/walletClient/index.js +515 -319
- package/package.json +1 -1
- package/src/walletClient/index.js +6 -2
package/package.json
CHANGED
|
@@ -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:
|
|
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
|
);
|