watwatwat

Untitled

Nov 17th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jwt.verify(token, 'secretkey', (err, decoded) => {        
  2.    if (err) {
  3.       res.status(403)
  4.          .json({ success: false,
  5.                  message: 'No Auth' });    
  6.    } else {
  7.        res.send("Private Stuff.")
  8.    }
  9. });
Add Comment
Please, Sign In to add comment