Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function authenticateUser (req, res, next) {
- console.log("From auth" + req.user + " " + req.method);
- if (req.isAuthenticated()) {
- return next();
- }
- res.send({ message: "Auth, please!" });
- }
- module.exports = authenticateUser;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement