Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.get('/authenticate', function(req, res) {
console.log('in authenticate')
console.log(session.jwt)
session.jwt ? res.send(true) : res.send(false)
})
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('/')
})