@riocrypto/common 1.0.297 → 1.0.298

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.
@@ -8,16 +8,13 @@ const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
8
8
  const currentAuth = (req, res, next) => {
9
9
  var _a;
10
10
  if (!((_a = req.cookies) === null || _a === void 0 ? void 0 : _a.jwt)) {
11
- console.log("no jwt found");
12
11
  return next();
13
12
  }
14
13
  try {
15
14
  const payload = jsonwebtoken_1.default.verify(req.cookies.jwt, process.env.JWT_KEY);
16
15
  req.currentAuth = payload;
17
16
  }
18
- catch (err) {
19
- console.log(err);
20
- }
17
+ catch (err) { }
21
18
  next();
22
19
  };
23
20
  exports.currentAuth = currentAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.297",
3
+ "version": "1.0.298",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",