Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@internxt/sdk",
"author": "Internxt <[email protected]>",
"version": "1.9.9",
"version": "1.9.10",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
TwoFactorAuthQR,
RegisterPreCreatedUser,
RegisterPreCreatedUserResponse,
PrivateKeys,
} from './types';
import { UserSettings, UUID } from '../shared/types/userSettings';
import { TeamsSettings } from '../shared/types/teams';
Expand Down Expand Up @@ -389,19 +390,22 @@ export class Auth {
* @param password
* @param salt
* @param mnemonic
* @param keys
*/
public changePasswordWithLink(
token: string | undefined,
password: string,
salt: string,
mnemonic: string,
keys?: PrivateKeys,
): Promise<void> {
return this.client.put(
`/users/recover-account?token=${token}&reset=false`,
{
password: password,
salt: salt,
mnemonic: mnemonic,
privateKeys: keys,
},
this.basicHeaders(),
);
Expand Down
5 changes: 5 additions & 0 deletions src/auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ export interface BasicAuth {
username: string;
password: string;
}

export interface PrivateKeys {
ecc?: string;
kyber?: string;
}