How to use the express-session.jwt function in express-session

To help you get started, we’ve selected a few express-session examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github antoinfive / flatiron-attendance-trackr-frontend / tools / dev-server.js View on Github external
app.get('/authenticate', function(req, res) {
  console.log('in authenticate')
  console.log(session.jwt)
  session.jwt ? res.send(true) : res.send(false)
})
github antoinfive / flatiron-attendance-trackr-frontend / tools / dev-server.js View on Github external
app.get('/Finishlogin', function(req, res) {
  console.log('inside express login  ... request jwt query next')
  console.log('writing to session object')
  session.jwt = req.query.jwt

  res.redirect('/')
 
})