Skip to content

Instantly share code, notes, and snippets.

@emaitee
Last active January 24, 2019 19:15
Show Gist options
  • Save emaitee/8a1ed3320ecf714742f7c510c931362c to your computer and use it in GitHub Desktop.
Save emaitee/8a1ed3320ecf714742f7c510c931362c to your computer and use it in GitHub Desktop.
express-passport-jwt-sequelize-mysql
// protected route
app.get('/protected', passport.authenticate('jwt', { session: false }), function(req, res) {
res.json('Success! You can now see this without a token.');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment