Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@usecapsule/user-management-client

Package Overview
Dependencies
Maintainers
11
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/user-management-client - npm Package Compare versions

Comparing version 0.15.5 to 0.15.6

10

client.ts

@@ -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 };

1

dist/client.d.ts

@@ -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 () {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc