code: function setTokenCookie(req, res) {
    if (!req.userInfo) {
      return res.notFound({message: 'Something went wrong, please try again.'});
    }
  
    var token = signToken(req.userInfo._id, req.userInfo.role);
    res.cookie('token', JSON.stringify(token));
    res.redirect('/');
  }
docs: Set token cookie directly for oAuth sreturn trategies. Use the user object of the request to
  identify a valid session. Set the signed cookie to the request and redirect to '/'.
  @param {http.IncomingMessage} req - The request message object
  @param {ServerResponse} res - The outgoing response object the cookie is set to
  @return {ServerResponse}