/** * An example route that requires a valid access token for authentication, it * will echo the contents of the access token if the middleware successfully * validated the token. */ app.get('/secure', authenticationRequired, (req, res) => { res.json(req.jwt); });