-
-
Save newz2000/998cf7ec7adf86248408 to your computer and use it in GitHub Desktop.
Require authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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