@hastehaul/common 3.2.0 → 3.4.0

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.
@@ -31,10 +31,10 @@ const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, functi
31
31
  return next();
32
32
  }
33
33
  try {
34
+ const jwtKey = (_a = process.env.JWT_KEY) !== null && _a !== void 0 ? _a : "";
35
+ console.log("=== KEYS ===", jwtKey);
34
36
  const token = bearerToken.split(' ')[1];
35
37
  if (token) {
36
- const jwtKey = (_a = process.env.JWT_KEY) !== null && _a !== void 0 ? _a : "";
37
- console.log("=== jwtKey ===", jwtKey);
38
38
  const result = jsonwebtoken_1.default.verify(token, jwtKey.split('-').join(''));
39
39
  req.currentUser = result;
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",