@ccci/micro-server 1.0.55 → 1.0.56
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.
- package/dist/index.js +0 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -113697,7 +113697,6 @@ class RouterFactory {
|
|
|
113697
113697
|
resolve();
|
|
113698
113698
|
});
|
|
113699
113699
|
} catch (error) {
|
|
113700
|
-
console.log("error", error);
|
|
113701
113700
|
Logger.error(error);
|
|
113702
113701
|
reject(error);
|
|
113703
113702
|
}
|
|
@@ -113705,12 +113704,10 @@ class RouterFactory {
|
|
|
113705
113704
|
}
|
|
113706
113705
|
static authenticate(req, res, next, grantPublicAccess = false) {
|
|
113707
113706
|
try {
|
|
113708
|
-
console.log("req.body", req.body);
|
|
113709
113707
|
let bearerToken = req.headers.authorization;
|
|
113710
113708
|
if (bearerToken && bearerToken != null && bearerToken != "null") {
|
|
113711
113709
|
const token = bearerToken.split(" ")[1];
|
|
113712
113710
|
let decoded = verify(token);
|
|
113713
|
-
console.log("decoded", decoded);
|
|
113714
113711
|
} else if (!grantPublicAccess)
|
|
113715
113712
|
return res.status(401).send({ success: false, error: 1004, errorMessage: "Unauthorized. No access token found on the request." });
|
|
113716
113713
|
next();
|