Comparing version 3.4.0 to 3.5.0
{ | ||
"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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38490
973
0