@internxt/sdk 1.10.6 → 1.10.8
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/auth/index.js +3 -2
- package/package.json +1 -1
package/dist/auth/index.js
CHANGED
|
@@ -452,6 +452,7 @@ var Auth = /** @class */ (function () {
|
|
|
452
452
|
Auth.prototype.legacyRecoverAccount = function (_a) {
|
|
453
453
|
var token = _a.token, encryptedPassword = _a.encryptedPassword, encryptedSalt = _a.encryptedSalt, encryptedMnemonic = _a.encryptedMnemonic, eccEncryptedMnemonic = _a.eccEncryptedMnemonic, kyberEncryptedMnemonic = _a.kyberEncryptedMnemonic, keys = _a.keys;
|
|
454
454
|
var accountRecoverPayload = {
|
|
455
|
+
token: token,
|
|
455
456
|
password: encryptedPassword,
|
|
456
457
|
salt: encryptedSalt,
|
|
457
458
|
mnemonic: encryptedMnemonic,
|
|
@@ -461,7 +462,7 @@ var Auth = /** @class */ (function () {
|
|
|
461
462
|
},
|
|
462
463
|
keys: keys,
|
|
463
464
|
};
|
|
464
|
-
return this.client.put(
|
|
465
|
+
return this.client.put('/users/legacy-recover-account', accountRecoverPayload, this.basicHeaders());
|
|
465
466
|
};
|
|
466
467
|
/**
|
|
467
468
|
* Reset account with token
|
|
@@ -478,7 +479,7 @@ var Auth = /** @class */ (function () {
|
|
|
478
479
|
}, this.basicHeaders());
|
|
479
480
|
};
|
|
480
481
|
Auth.prototype.basicHeaders = function () {
|
|
481
|
-
return (0, headers_1.basicHeaders)(this.appDetails.clientName, this.appDetails.clientVersion);
|
|
482
|
+
return (0, headers_1.basicHeaders)(this.appDetails.clientName, this.appDetails.clientVersion, this.appDetails.customHeaders);
|
|
482
483
|
};
|
|
483
484
|
Auth.prototype.headersWithToken = function (token) {
|
|
484
485
|
return (0, headers_1.headersWithToken)(this.appDetails.clientName, this.appDetails.clientVersion, token);
|