Socket
Socket
Sign inDemoInstall

stytch

Package Overview
Dependencies
Maintainers
11
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stytch - npm Package Compare versions

Comparing version 3.7.0 to 3.8.0

dist/totps.js

3

dist/client.js

@@ -24,2 +24,4 @@ "use strict";

var _totps = require("./totps");
var _webauthn = require("./webauthn");

@@ -73,2 +75,3 @@

this.sessions = new _sessions.Sessions(this.client);
this.totps = new _totps.TOTPs(this.client);
this.webauthn = new _webauthn.WebAuthn(this.client);

@@ -75,0 +78,0 @@ }

@@ -152,2 +152,9 @@ "use strict";

deleteTOTP(totpID) {
return (0, _shared.request)(this.client, {
method: "DELETE",
url: this.endpoint(`totps/${totpID}`)
});
}
}

@@ -154,0 +161,0 @@

2

package.json
{
"name": "stytch",
"version": "3.7.0",
"version": "3.8.0",
"description": "A wrapper for the Stytch API",

@@ -5,0 +5,0 @@ "types": "./types/lib/index.d.ts",

@@ -26,5 +26,6 @@ # Stytch Node.js Library

- [x] [Email passcodes](https://stytch.com/docs/api/send-otp-by-email)
- [x] [Session Management (Beta)](https://stytch.com/docs/api/sessions-overview)
- [x] [Session Management](https://stytch.com/docs/api/sessions-overview)
- [x] [WebAuthn (Beta)](https://stytch.com/docs/api/webauthn-overview)
- [x] [User Management (Beta)](https://stytch.com/docs/api/users)
- [x] [Time-based one-time passcodes (TOTPs) (Beta)](https://stytch.com/docs/api/totps-overview)

@@ -31,0 +32,0 @@ ### Example usage

@@ -6,2 +6,3 @@ import { Users } from "./users";

import { Sessions } from "./sessions";
import { TOTPs } from "./totps";
import { WebAuthn } from "./webauthn";

@@ -23,2 +24,3 @@ import type * as users from "./users";

sessions: Sessions;
totps: TOTPs;
webauthn: WebAuthn;

@@ -25,0 +27,0 @@ private client;

@@ -27,2 +27,6 @@ import type { AxiosInstance, AxiosRequestConfig } from "axios";

}
export interface TOTP {
totp_id: string;
status: string;
}
export interface OAuthProvider {

@@ -70,3 +74,11 @@ provider_subject: string;

}
export declare type AuthenticationFactor = EmailFactor | PhoneNumberFactor | GoogleOAuthFactor | WebAuthnFactor;
export interface AuthenticatorAppFactor {
delivery_method: "authenticator_app";
type: string;
last_authenticated_at: Date;
authenticator_app_factor: {
totp_id: string;
};
}
export declare type AuthenticationFactor = EmailFactor | PhoneNumberFactor | GoogleOAuthFactor | WebAuthnFactor | AuthenticatorAppFactor;
export interface Session {

@@ -73,0 +85,0 @@ session_id: string;

import { OAuthProvider } from "./shared";
import type { AxiosInstance } from "axios";
import type { Attributes, BaseResponse, Email, Name, PhoneNumber, WebAuthnRegistration } from "./shared";
import type { Attributes, BaseResponse, Email, Name, PhoneNumber, WebAuthnRegistration, TOTP } from "./shared";
export declare type UserID = string;

@@ -12,2 +12,3 @@ export interface PendingUser {

invited_at: string;
totps: TOTP[];
}

@@ -36,2 +37,3 @@ export interface CreateRequest {

webauthn_registrations: WebAuthnRegistration[];
totps: TOTP[];
}

@@ -97,2 +99,8 @@ export declare type GetResponse = BaseResponse & User;

filter_value: string[];
} | {
filter_name: "totp_id";
filter_value: string[];
} | {
filter_name: "totp_status";
filter_value: string[];
};

@@ -151,2 +159,5 @@ export interface SearchRequest {

}
export interface DeleteTOTPResponse extends BaseResponse {
user_id: UserID;
}
export declare class UserSearchIterator {

@@ -176,3 +187,4 @@ private client;

deleteWebAuthnRegistration(webAuthnRegistrationID: string): Promise<DeleteWebAuthnRegistrationResponse>;
deleteTOTP(totpID: string): Promise<DeleteTOTPResponse>;
}
export {};
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