title: Passport.js strategy with no field required
body: <p>I'm surprised that it's so hard to find, or maybe something wrong with me.</p>
  
  <p>I need a <code>passport.js</code> <code>strategy</code> that requires no fields - to run authentication with it on simple user <code>GET</code> request to <code>'/'</code> and manipulate user session data to, for example, make a new 'guest' user.</p>
  
  <p>Maybe i can do this via passport <code>local-strategy</code>? Or am i need to create a custom one? </p>
  
  <p>I saw this <a href="https://stackoverflow.com/questions/27464091/passport-strategy-without-fields">Configure Passport to accept request without body?</a>  question, yet i just simply can't figure out how the suggested in answer wrapping will change anything.</p>
  
  <p>Edit: here's what I'm trying to achieve</p>
  
  <pre><code> passport.use('guest', new LocalStrategy({
      passReqToCallback: true
  },
  function (req, NOusername, NOpassword, done) {
  ////NO PASSWORD OR USERNAME checks here, just deciding what kind of temporary user needs to be created///
  if (req.session.passport) {
    ///create new user with previous session data
    done(null,user)
  }
  else {
     ///create clean user
     done(null, user)
  })
  )
  </code></pre>
  
  <p>and then in <code>routes.js</code> </p>
  
  <pre><code>app.get('/', passport.authenticate('guest'), function (req, res) {        
      res.render('PeerRoom.ejs', req.user);        
  });
  </code></pre>