SHARE
TWEET

Untitled

a guest Jan 24th, 2020 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. router.use(function(req, res, next){
  2.   let token = req.query.token;
  3.   if(token === 'bca26632-928c-4f40-93e1-7e130d3298b0'){
  4.     next();
  5.   }
  6.   else {
  7.     res.json({ status: 'error', error: 'Access denied' });
  8.     // next({ status: 'error', error: 'Access denied' });
  9.   }
  10. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top