@jeffkk/common 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.requireAuth = void 0;
|
|
4
4
|
const not_authorized_error_1 = require("../errors/not-authorized-error");
|
|
5
5
|
const requireAuth = (req, res, next) => {
|
|
6
|
+
console.log('hello the current user is here: ');
|
|
6
7
|
if (!req.currentUser) {
|
|
8
|
+
console.log('error here where is currrent user: ');
|
|
7
9
|
throw new not_authorized_error_1.NotAuthorizedError();
|
|
8
10
|
}
|
|
9
11
|
next();
|