From 250f84d7cbbeda231ed9630cbfa47d0078ad4a2e Mon Sep 17 00:00:00 2001 From: tamarafinogina Date: Mon, 15 Dec 2025 10:10:36 +0100 Subject: [PATCH 1/2] adjust opaque api --- src/auth/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auth/index.ts b/src/auth/index.ts index af90a85..19c8d58 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -266,7 +266,6 @@ export class Auth { public async loginOpaqueStart( email: string, startLoginRequest: string, - tfa: string | undefined, ): Promise<{ loginResponse: string; }> { @@ -277,7 +276,6 @@ export class Auth { { email, startLoginRequest, - tfa, }, this.basicHeaders(), ); @@ -291,6 +289,7 @@ export class Auth { public async loginOpaqueFinish( email: string, finishLoginRequest: string, + tfa: string | undefined, ): Promise<{ sessionID: string; user: UserSettings; @@ -298,11 +297,13 @@ export class Auth { return this.client.post<{ sessionID: string; user: UserSettings; + token: string; }>( '/auth/login-opaque/finish', { email, finishLoginRequest, + tfa, }, this.basicHeaders(), ); From 27fa54e9744472de7d6bfa5d989acad391a5a597 Mon Sep 17 00:00:00 2001 From: tamarafinogina Date: Fri, 19 Dec 2025 18:22:22 +0100 Subject: [PATCH 2/2] up the version, add forgotten input --- package.json | 2 +- src/auth/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7349617..5a4d7cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt ", - "version": "1.11.24", + "version": "1.11.25", "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 19c8d58..3ccc88a 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -293,6 +293,7 @@ export class Auth { ): Promise<{ sessionID: string; user: UserSettings; + token: string; }> { return this.client.post<{ sessionID: string;