Skip to content

Instantly share code, notes, and snippets.

@duizendnegen
Created April 8, 2017 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duizendnegen/45d85865bc2ba85d9622654e1fdc0c86 to your computer and use it in GitHub Desktop.
Save duizendnegen/45d85865bc2ba85d9622654e1fdc0c86 to your computer and use it in GitHub Desktop.
app.get('/protected',
passport.authenticate('bearer', { session: false }),
function(req, res) {
res.json(req.user);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment