@ahi40/common
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22959
520