In my server site all works fine. but When I checked anything by console. log('anything') it doesn't show. here are some codes. they work fine. only I cannot see the console.log.
function varifyToken(req, res, next) {
const getToken = req.headers.authorization;
console.log('gettoken',getToken);
next();
}
According to the documentation, you should use something like this
function varifyToken(req, res, next) {
const getToken = req.get('authorization');
console.log('gettoken',getToken);
next();
}
Please check express documentation