remove debug logs from JWT authentication process

This commit is contained in:
StarAppeal
2025-09-04 01:07:52 +02:00
parent 1e8e040c53
commit b3381e04e3
-4
View File
@@ -9,14 +9,10 @@ export function authenticateJwt(
//remove Bearer from the beginning of the token
const token = req.headers["authorization"]?.slice("Bearer ".length);
console.log(token);
const jwtAuthenticator = new JwtAuthenticator(
process.env.SECRET_KEY as string,
);
console.log(process.env.SECRET_KEY)
const decodedToken = jwtAuthenticator.verifyToken(token);
console.log(decodedToken)
if (!decodedToken) {