Socket
Socket
Sign inDemoInstall

remix-auth-email-link

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-auth-email-link - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

build/index.d.ts

@@ -30,3 +30,3 @@ import type { SessionStorage } from '@remix-run/server-runtime';

emailAddress: string;
form: FormData;
form: Record<string, unknown>;
/**

@@ -33,0 +33,0 @@ * When the magic link was created, as an ISO string. This is used to check

@@ -156,3 +156,6 @@ "use strict";

emailAddress,
form,
form: Object.fromEntries([...form.keys()].map((key) => [
key,
form.getAll(key).length > 1 ? form.getAll(key) : form.get(key),
])),
creationDate: new Date().toISOString(),

@@ -219,5 +222,17 @@ validateSessionMagicLink: this.validateSessionMagicLink,

}
return { emailAddress, form };
const formData = new FormData();
Object.keys(form).forEach((key) => {
if (Array.isArray(form[key])) {
;
form[key].forEach((value) => {
formData.append(key, value);
});
}
else {
formData.append(key, form[key]);
}
});
return { emailAddress, form: formData };
}
}
exports.EmailLinkStrategy = EmailLinkStrategy;
{
"name": "remix-auth-email-link",
"version": "1.4.0",
"version": "1.4.1",
"main": "./build/index.js",

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

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