Socket
Socket
Sign inDemoInstall

stytch

Package Overview
Dependencies
Maintainers
9
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.4.0 to 3.5.0

2

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

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

@@ -5,2 +5,4 @@ import type { AxiosInstance } from "axios";

session_management_type?: "stytch" | "idp" | "none";
session_token?: string;
session_duration_minutes?: number;
}

@@ -7,0 +9,0 @@ export interface OAuthSession {

@@ -21,2 +21,28 @@ import type { AxiosInstance, AxiosRequestConfig } from "axios";

}
export interface EmailFactor {
delivery_method: "email" | "embedded";
type: string;
email_factor: {
email_id: string;
email_address: string;
};
}
export interface PhoneNumberFactor {
delivery_method: "sms" | "whatsapp";
type: string;
phone_number_factor: {
phone_id: string;
phone_number: string;
};
}
export interface GoogleOAuthFactor {
delivery_method: "oauth_google";
type: string;
google_oauth_factor: {
id: string;
email_id: string;
provider_subject: string;
};
}
export declare type AuthenticationFactor = EmailFactor | PhoneNumberFactor | GoogleOAuthFactor;
export interface Session {

@@ -29,2 +55,3 @@ session_id: string;

attributes: Attributes;
authentication_factors: AuthenticationFactor[];
}

@@ -31,0 +58,0 @@ export interface BaseResponse {

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