diff --git a/package.json b/package.json index 1e27cf56..3f05eb5e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt ", - "version": "1.10.7", + "version": "1.10.8", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", diff --git a/src/auth/index.ts b/src/auth/index.ts index 2066a75c..2d7abb08 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -539,6 +539,7 @@ export class Auth { keys, }: ChangePasswordWithLinkPayload): Promise { const accountRecoverPayload = { + token, password: encryptedPassword, salt: encryptedSalt, mnemonic: encryptedMnemonic, @@ -549,7 +550,7 @@ export class Auth { keys, }; - return this.client.put(`/users/legacy-recover-account?token=${token}`, accountRecoverPayload, this.basicHeaders()); + return this.client.put('/users/legacy-recover-account', accountRecoverPayload, this.basicHeaders()); } /** diff --git a/test/auth/index.test.ts b/test/auth/index.test.ts index 053d4216..df7880f1 100644 --- a/test/auth/index.test.ts +++ b/test/auth/index.test.ts @@ -914,8 +914,9 @@ describe('# auth service tests', () => { // Assert expect(callStub.firstCall.args).toEqual([ - `/users/legacy-recover-account?token=${payload.token}`, + '/users/legacy-recover-account', { + token: payload.token, password: payload.encryptedPassword, salt: payload.encryptedSalt, mnemonic: payload.encryptedMnemonic,