i have one url that is rendering data and url contains some parameter. so when in that same route i can use those parameter but i cant use it in another routes. so can someone help me with how to transfer data from one routes to another.
router.get('/token/:tokenvalue', function(req, res, next){
  var token = req.params.tokenvalue;
  // globalVariable.token = token;
  // console.log(globalVariable.token);
  req.token = token;
  res.render('candidate.ejs');
})
after showing this page i am using google login so i cant store this token to req variable or somewhere else. so can someone suggest me how to resolve this issue.
 
    