@internxt/sdk 1.11.24 → 1.11.25
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 +3 -3
- package/package.json +1 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export declare class Auth {
|
|
|
87
87
|
* @param tfa - The two factor auth code.
|
|
88
88
|
* @returns The opaque login response.
|
|
89
89
|
*/
|
|
90
|
-
loginOpaqueStart(email: string, startLoginRequest: string
|
|
90
|
+
loginOpaqueStart(email: string, startLoginRequest: string): Promise<{
|
|
91
91
|
loginResponse: string;
|
|
92
92
|
}>;
|
|
93
93
|
/**
|
|
@@ -95,9 +95,10 @@ export declare class Auth {
|
|
|
95
95
|
* @param email
|
|
96
96
|
* @param finishLoginRequest
|
|
97
97
|
*/
|
|
98
|
-
loginOpaqueFinish(email: string, finishLoginRequest: string): Promise<{
|
|
98
|
+
loginOpaqueFinish(email: string, finishLoginRequest: string, tfa: string | undefined): Promise<{
|
|
99
99
|
sessionID: string;
|
|
100
100
|
user: UserSettings;
|
|
101
|
+
token: string;
|
|
101
102
|
}>;
|
|
102
103
|
/**
|
|
103
104
|
* Tries to log in a user given its login details
|
package/dist/auth/index.js
CHANGED
|
@@ -234,13 +234,12 @@ var Auth = /** @class */ (function () {
|
|
|
234
234
|
* @param tfa - The two factor auth code.
|
|
235
235
|
* @returns The opaque login response.
|
|
236
236
|
*/
|
|
237
|
-
Auth.prototype.loginOpaqueStart = function (email, startLoginRequest
|
|
237
|
+
Auth.prototype.loginOpaqueStart = function (email, startLoginRequest) {
|
|
238
238
|
return __awaiter(this, void 0, void 0, function () {
|
|
239
239
|
return __generator(this, function (_a) {
|
|
240
240
|
return [2 /*return*/, this.client.post('/auth/login-opaque/start', {
|
|
241
241
|
email: email,
|
|
242
242
|
startLoginRequest: startLoginRequest,
|
|
243
|
-
tfa: tfa,
|
|
244
243
|
}, this.basicHeaders())];
|
|
245
244
|
});
|
|
246
245
|
});
|
|
@@ -250,12 +249,13 @@ var Auth = /** @class */ (function () {
|
|
|
250
249
|
* @param email
|
|
251
250
|
* @param finishLoginRequest
|
|
252
251
|
*/
|
|
253
|
-
Auth.prototype.loginOpaqueFinish = function (email, finishLoginRequest) {
|
|
252
|
+
Auth.prototype.loginOpaqueFinish = function (email, finishLoginRequest, tfa) {
|
|
254
253
|
return __awaiter(this, void 0, void 0, function () {
|
|
255
254
|
return __generator(this, function (_a) {
|
|
256
255
|
return [2 /*return*/, this.client.post('/auth/login-opaque/finish', {
|
|
257
256
|
email: email,
|
|
258
257
|
finishLoginRequest: finishLoginRequest,
|
|
258
|
+
tfa: tfa,
|
|
259
259
|
}, this.basicHeaders())];
|
|
260
260
|
});
|
|
261
261
|
});
|