@usecapsule/user-management-client
Advanced tools
Comparing version 0.15.5 to 0.15.6
@@ -488,12 +488,2 @@ import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponseHeaders } from 'axios'; | ||
// POST /users/verify-2fa | ||
async verify2FAForRecovery(email: string, verificationCode: string) { | ||
const body = { email, verificationCode, isRecovery: true }; | ||
const res = await this.baseRequest.post<any>( | ||
'/users/verify-2fa', | ||
body | ||
); | ||
return res; | ||
} | ||
// POST /users/verify-2fa | ||
async verify2FA(email: string, verificationCode: string) { | ||
@@ -500,0 +490,0 @@ const body = { email, verificationCode }; |
@@ -150,3 +150,2 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
verifyEmailForRecovery(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
verify2FAForRecovery(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
verify2FA(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
@@ -153,0 +152,0 @@ tempTrasmissionInit(message: string, userId?: string): Promise<import("axios").AxiosResponse<any, any>>; |
@@ -645,18 +645,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
// POST /users/verify-2fa | ||
Client.prototype.verify2FAForRecovery = function (email, verificationCode) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var body, res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
body = { email: email, verificationCode: verificationCode, isRecovery: true }; | ||
return [4 /*yield*/, this.baseRequest.post('/users/verify-2fa', body)]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); | ||
}; | ||
// POST /users/verify-2fa | ||
Client.prototype.verify2FA = function (email, verificationCode) { | ||
@@ -663,0 +647,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "0.15.5", | ||
"version": "0.15.6", | ||
"main": "dist/client.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/client.d.ts", |
Sorry, the diff of this file is not supported yet
73168
1434