title: Combine multiple auths with passport, express & NodeJS
body: <p>I'm trying to combine a <code>LinkedInStrategy</code> with an existing <code>LocalStrategy</code> (user is already authenticated).</p>
  
  <p>Here is the example from passport docs :</p>
  
  <pre><code>schema.statics.passportLinkedInStrategy = function(token, tokenSecret, profile, done) {
      // asynchronous verification, for effect...
      process.nextTick(function () {
          // To keep the example simple, the user's LinkedIn profile is returned to
          // represent the logged-in user.  In a typical application, you would want
          // to associate the LinkedIn account with a user record in your database,
          // and return that user instead.
          return done(null, profile);
      });
  };
  </code></pre>
  
  <p>Problem is I don't have access to <code>req.user</code> to check the existing session in this callback.</p>
  
  <p>Any idea on how I could/should do it?</p>