@ahi40/common
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -22,3 +22,3 @@ "use strict"; | ||
var _this = _super.call(this, 'Not Authorized.') || this; | ||
_this.statusCode = 401; | ||
_this.statusCode = 409; | ||
Object.setPrototypeOf(_this, NotAuthorizedError.prototype); | ||
@@ -25,0 +25,0 @@ return _this; |
@@ -22,3 +22,4 @@ "use strict"; | ||
var _this = _super.call(this, 'Token expired.') || this; | ||
_this.statusCode = 401; | ||
_this.statusCode = 408; | ||
console.log('token expired handler'); | ||
Object.setPrototypeOf(_this, TokenExpiredCustomError.prototype); | ||
@@ -25,0 +26,0 @@ return _this; |
@@ -6,3 +6,5 @@ "use strict"; | ||
exports.requireAuth = function (req, res, next) { | ||
console.log('run rq'); | ||
if (!req.currentUser) { | ||
console.log('no user set'); | ||
throw new not_authorized_error_1.NotAuthorizedError(); | ||
@@ -9,0 +11,0 @@ } |
{ | ||
"name": "@ahi40/common", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"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
23347
531