@usecapsule/user-management-client
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -381,2 +381,14 @@ import axios, { AxiosInstance } from 'axios'; | ||
// POST /users/cancel-recovery | ||
async cancelRecoveryAttempt(email: string) { | ||
const res = await this.baseRequest.post<any>( | ||
`/users/cancel-recovery`, | ||
null, | ||
{ | ||
params: { email } | ||
} | ||
); | ||
return res; | ||
} | ||
// POST /users/recovery-verification-code | ||
@@ -383,0 +395,0 @@ async sendVerificationCodeForRecovery(email: string) { |
@@ -142,2 +142,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
resendVerificationCode(userId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
cancelRecoveryAttempt(email: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
sendVerificationCodeForRecovery(email: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
@@ -144,0 +145,0 @@ verifyEmailForRecovery(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>; |
@@ -511,2 +511,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// POST /users/cancel-recovery | ||
Client.prototype.cancelRecoveryAttempt = function (email) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.baseRequest.post("/users/cancel-recovery", null, { | ||
params: { email: email } | ||
})]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); | ||
}; | ||
// POST /users/recovery-verification-code | ||
@@ -513,0 +529,0 @@ Client.prototype.sendVerificationCodeForRecovery = function (email) { |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"main": "dist/client.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/client.d.ts", |
Sorry, the diff of this file is not supported yet
65839
1295