Socket
Socket
Sign inDemoInstall

@ahi40/common

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ahi40/common - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

9

build/middlewares/require-auth.js

@@ -5,3 +5,2 @@ "use strict";

var not_authorized_error_1 = require("../errors/not-authorized-error");
var token_expired_error_1 = require("../errors/token-expired-error");
exports.requireAuth = function (req, res, next) {

@@ -13,7 +12,7 @@ console.log('run req auth');

}
if (req.currentUser.exp < Date.now().valueOf() / 1000) {
console.log('token expired');
throw new token_expired_error_1.TokenExpiredError();
}
// if (req.currentUser.exp < Date.now().valueOf() / 1000) {
// console.log('token expired')
// throw new TokenExpiredError();
// }
next();
};
{
"name": "@ahi40/common",
"version": "1.0.19",
"version": "1.0.20",
"description": "",

@@ -5,0 +5,0 @@ "main": "./build/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