@internxt/sdk 1.6.5 → 1.7.0

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.
@@ -102,10 +102,11 @@ export declare class Auth {
102
102
  */
103
103
  sendChangePasswordEmail(email: string): Promise<void>;
104
104
  /**
105
- * Upgrade hash in the database
105
+ * Upgrade hash and salt in the database
106
106
  * @param newHash
107
+ * @param newSalt
107
108
  */
108
- upgradeHash(newHash: string): Promise<void>;
109
+ upgradeHash(newHash: string, newSalt: string): Promise<void>;
109
110
  /**
110
111
  * Restore password with email link
111
112
  * @param token
@@ -330,13 +330,14 @@ var Auth = /** @class */ (function () {
330
330
  }, this.basicHeaders());
331
331
  };
332
332
  /**
333
- * Upgrade hash in the database
333
+ * Upgrade hash and salt in the database
334
334
  * @param newHash
335
+ * @param newSalt
335
336
  */
336
- Auth.prototype.upgradeHash = function (newHash) {
337
+ Auth.prototype.upgradeHash = function (newHash, newSalt) {
337
338
  return this.client.patch('/users/:id', {
338
339
  newPassword: newHash,
339
- newSalt: '',
340
+ newSalt: newSalt,
340
341
  }, this.basicHeaders());
341
342
  };
342
343
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.6.5",
4
+ "version": "1.7.0",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",