Socket
Socket
Sign inDemoInstall

stytch

Package Overview
Dependencies
Maintainers
7
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 1.2.3 to 2.0.0

8

lib/stytchClient.js

@@ -103,10 +103,2 @@ 'use strict';

// MAGIC LINKS
Client.prototype.sendMagicLink =
function(request, cb) {
return this._authenticatedRequest({
path: 'magic_links/send',
body: request,
},'POST', cb);
};
Client.prototype.sendMagicLinkByEmail =

@@ -113,0 +105,0 @@ function(request, cb) {

2

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

@@ -5,0 +5,0 @@ "main": "lib/stytch.js",

@@ -61,2 +61,3 @@ declare module 'stytch' {

name?: Name;
create_user_as_pending?: boolean;
attributes?: Attributes;

@@ -118,18 +119,8 @@ }

// MAGIC LINKS
interface SendMagicLinkRequest {
user_id: string;
method_id: string;
magic_link_url: string;
expiration_minutes?: bigint;
attributes?: Attributes;
}
interface SendMagicLinkResponse extends BaseResponse {
user_id: string;
}
interface SendMagicLinkByEmailRequest {
email: string;
magic_link_url: string;
expiration_minutes?: bigint;
login_magic_link_url: string;
signup_magic_link_url: string;
login_expiration_minutes?: bigint;
signup_expiration_minutes?: bigint;
attributes?: Attributes;

@@ -161,4 +152,4 @@ }

email: string;
magic_link_url: string;
expiration_minutes?: bigint;
invite_magic_link_url: string;
invite_expiration_minutes?: bigint;
name?: Name;

@@ -297,11 +288,2 @@ attributes?: Attributes;

// MAGIC LINKS
sendMagicLink(
request: SendMagicLinkRequest
): Promise<SendMagicLinkResponse>;
sendMagicLink(
request: SendMagicLinkRequest,
cb: Callback<SendMagicLinkResponse>,
): void;
sendMagicLinkByEmail(

@@ -308,0 +290,0 @@ request: SendMagicLinkByEmailRequest

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