text: const router = require('express').Router();
  const passport = require('passport');
  
  router.use(passport.initialize());
  
  // auth login
  router.get('/login', (req, res) => {
      res.render('login', { user: req.user });
  });
  
  // auth logout
  router.get('/logout', (req, res) => {
      // handle with passport
      req.logout();
      res.redirect('/');
  });
  
  // auth with google+
  router.get('/google', passport.authenticate('google', {
      scope: ['profile', 'email'],
      prompt: 'select_account'
  }));
  
  // callback route for google to redirect to
  router.get('/google/redirect', passport.authenticate('google'), (req, res) => {
      // res.send(req.user);
      res.redirect('/profile');
  });
  
  
  module.exports = router;