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

socketio-jwt

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketio-jwt - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

example/socketsio-auth0-sample/views/index.pug

9

example/socketsio-auth0-sample/index.js
var express = require('express');
var app=express();
var app = express();
var http = require('http').Server(app);

@@ -16,3 +16,3 @@ var io = require('socket.io')(http);

app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.set('view engine', 'pug');

@@ -31,5 +31,5 @@ io

});
app.use(express.static(__dirname + '/public'));
app.get('/', function (req, res) {

@@ -42,2 +42,1 @@ res.render('index', { env: env });

});

@@ -9,8 +9,8 @@ {

"dependencies": {
"dotenv": "^1.2.0",
"express": "^4.13.3",
"jade": "^1.11.0",
"socket.io": "^1.3.7",
"dotenv": "^2.0.0",
"express": "^4.13.4",
"pug": "^2.0.0-beta2",
"socket.io": "^1.4.6",
"socketio-jwt": "^4.3.3"
}
}

@@ -44,3 +44,3 @@ var xtend = require('xtend');

if(typeof data.token !== "string") {
if(!data || typeof data.token !== "string") {
return onError({message: 'invalid token datatype'}, 'invalid_token');

@@ -47,0 +47,0 @@ }

{
"name": "socketio-jwt",
"version": "4.4.0",
"version": "4.4.1",
"description": "authenticate socket.io connections using JWTs",

@@ -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