Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@newz2000
Created December 12, 2014 06:34
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 newz2000/998cf7ec7adf86248408 to your computer and use it in GitHub Desktop.
Save newz2000/998cf7ec7adf86248408 to your computer and use it in GitHub Desktop.
Require authentication
router.use(function(req, res, next) {
if(!req.user) {
res.redirect('/auth/twitter');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment