@wrcb/cb-common 1.0.498 → 1.0.500
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.
|
@@ -28,10 +28,6 @@ const requireHybridAuth = (req, res, next) => __awaiter(void 0, void 0, void 0,
|
|
|
28
28
|
};
|
|
29
29
|
return next();
|
|
30
30
|
}
|
|
31
|
-
// Se não tem chave interna, deve ter autenticação de usuário normal
|
|
32
|
-
if (!req.currentUser) {
|
|
33
|
-
throw new notAuthorizedError_1.NotAuthorizedError('NotAuthorized');
|
|
34
|
-
}
|
|
35
31
|
next();
|
|
36
32
|
});
|
|
37
33
|
exports.requireHybridAuth = requireHybridAuth;
|