@usecapsule/user-management-client
Advanced tools
Comparing version 0.15.3 to 0.15.4
@@ -147,3 +147,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
enable2FA(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
setup2FA(email: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
setup2FA(userId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
sendVerificationCodeForRecovery(email: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
@@ -150,0 +150,0 @@ verifyEmailForRecovery(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; |
@@ -600,4 +600,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// POST '/users/setup-2fa' | ||
Client.prototype.setup2FA = function (email) { | ||
// POST '/users/:userId/setup-2fa' | ||
Client.prototype.setup2FA = function (userId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -607,3 +607,3 @@ var res; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.baseRequest.post('/users/setup-2fa', { email: email })]; | ||
case 0: return [4 /*yield*/, this.baseRequest.post("/users/".concat(userId, "/setup-2fa"))]; | ||
case 1: | ||
@@ -610,0 +610,0 @@ res = _a.sent(); |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "0.15.3", | ||
"version": "0.15.4", | ||
"main": "dist/client.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/client.d.ts", |
Sorry, the diff of this file is not supported yet
74725