diff --git a/lib/index.js b/lib/index.js index 31946eed..c30bef4c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -124,6 +124,7 @@ module.exports = function(options) { }; middleware.unless = unless; + middleware.UnauthorizedError = UnauthorizedError; return middleware; };