function vefiry() {
return new Promise((resolve, reject) => {
jwt.verify(token, process.env.SECRET, function(err, decoded) {
if (err) {
reject()
} else {
resolve(decoded)
}
})
})
}
verify()
.then((decoded) => {
console.log(decoded)
})