@internxt/sdk 1.6.4 → 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.
- package/dist/auth/index.d.ts +3 -2
- package/dist/auth/index.js +4 -3
- package/package.json +1 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -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
|
package/dist/auth/index.js
CHANGED
|
@@ -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
|
/**
|