module.exports = {
    
   isLoggedIn(req,res,next) {
       if (req.isAuthenticated()) {
           return  next();
       }
       return res.redirect('/singin')
   }, 

   isNotLoggedIn(req,res,next) {
       if (!req.isAuthenticated()) {
           return next();
       }
       return res.redirect('/profile')
   }
};