if(token){
jwt.verify(token, config.secret, (err, payload) => {
if(err){console.log(err.message)
res.redirect('/user/login')}
else{
console.log(payload)
next()
}
})
}else{
res.redirect('/user/login')}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)