@hastehaul/common 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, functi
|
|
32
32
|
}
|
33
33
|
try {
|
34
34
|
const jwtKey = (_a = process.env.JWT_KEY) !== null && _a !== void 0 ? _a : "";
|
35
|
-
console.log("===
|
35
|
+
console.log("=== KEYS ===", jwtKey);
|
36
36
|
const token = bearerToken.split(' ')[1];
|
37
37
|
if (token) {
|
38
38
|
const result = jsonwebtoken_1.default.verify(token, jwtKey.split('-').join(''));
|