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.7 to 0.15.8

13

client.ts

@@ -441,8 +441,5 @@ import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponseHeaders } from 'axios';

// GET '/2fa/check-status'
async check2FAStatus(email: string) {
async check2FAStatus(userId: string) {
const res = await this.baseRequest.get<any>(
'/2fa/check-status',
{
params: { email }
}
`/2fa/users/${userId}/check-status`
);

@@ -453,6 +450,6 @@ return res;

// POST '/2fa/enable'
async enable2FA(email: string, verificationCode: string) {
async enable2FA(userId: string, verificationCode: string) {
const res = await this.baseRequest.post<any>(
'/2fa/enable',
{ email, verificationCode },
`/2fa/users/${userId}/enable`,
{ verificationCode },
);

@@ -459,0 +456,0 @@ return res;

@@ -145,4 +145,4 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics";

cancelRecoveryAttempt(email: string): Promise<import("axios").AxiosResponse<any, any>>;
check2FAStatus(email: string): Promise<import("axios").AxiosResponse<any, any>>;
enable2FA(email: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>;
check2FAStatus(userId: string): Promise<import("axios").AxiosResponse<any, any>>;
enable2FA(userId: string, verificationCode: string): Promise<import("axios").AxiosResponse<any, any>>;
setup2FA(userId: string): Promise<import("axios").AxiosResponse<any, any>>;

@@ -149,0 +149,0 @@ initializeRecovery(email: string): Promise<import("axios").AxiosResponse<any, any>>;

@@ -571,3 +571,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

// GET '/2fa/check-status'
Client.prototype.check2FAStatus = function (email) {
Client.prototype.check2FAStatus = function (userId) {
return __awaiter(this, void 0, void 0, function () {

@@ -577,5 +577,3 @@ var res;

switch (_a.label) {
case 0: return [4 /*yield*/, this.baseRequest.get('/2fa/check-status', {
params: { email: email }
})];
case 0: return [4 /*yield*/, this.baseRequest.get("/2fa/users/".concat(userId, "/check-status"))];
case 1:

@@ -589,3 +587,3 @@ res = _a.sent();

// POST '/2fa/enable'
Client.prototype.enable2FA = function (email, verificationCode) {
Client.prototype.enable2FA = function (userId, verificationCode) {
return __awaiter(this, void 0, void 0, function () {

@@ -595,3 +593,3 @@ var res;

switch (_a.label) {
case 0: return [4 /*yield*/, this.baseRequest.post('/2fa/enable', { email: email, verificationCode: verificationCode })];
case 0: return [4 /*yield*/, this.baseRequest.post("/2fa/users/".concat(userId, "/enable"), { verificationCode: verificationCode })];
case 1:

@@ -598,0 +596,0 @@ res = _a.sent();

{
"name": "@usecapsule/user-management-client",
"version": "0.15.7",
"version": "0.15.8",
"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