if(req.cookies.token_name) {
try {
const decoded = await promisify(jwt.verifiy)(req.cookies.token_name,
process.env.jwtsecret);
console.log(decoded);
}
catch (error) {
console.log(error);
}
}
This is the bit I'm having problems with. It doesn't log the decoded variable but it also doesn't give any errors. Can anyone help me with this?