Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electrode-csrf-jwt

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrode-csrf-jwt - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

5

lib/csrf-express.js

@@ -18,3 +18,3 @@ "use strict";

function createToken() {
const id = uuid.v1();
const id = uuid.v4();
const headerPayload = {type: "header", uuid: id};

@@ -51,3 +51,4 @@ const cookiePayload = {type: "cookie", uuid: id};

if (req.method === "POST") {
const method = req.method.toUpperCase();
if (method !== "GET" && method !== "HEAD") {
return verifyAndCreateToken();

@@ -54,0 +55,0 @@ }

@@ -21,3 +21,3 @@ "use strict";

function createToken() {
const id = uuid.v1();
const id = uuid.v4();
const headerPayload = {type: "header", uuid: id};

@@ -66,3 +66,4 @@ const cookiePayload = {type: "cookie", uuid: id};

if (request.method === "post") {
const method = request.method.toUpperCase();
if (method !== "GET" && method !== "HEAD") {
return verifyAndCreateToken();

@@ -69,0 +70,0 @@ }

2

package.json
{
"name": "electrode-csrf-jwt",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

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

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