title: How to Pass Data from React Native to Passport.js FacebookTokenStrategy Callback?
body: <p>I'm trying to pass data like deviceID to Passport.js FacebookTokenStrategy callback.</p>
  
  <p>I tried using <code>req._toParam</code>, but it is not working, seems like it's deprecated.</p>
  
  <p>server router file</p>
  
  <pre><code>authRouter.post(
      '/facebook/token',
        (req, res, next) =&gt; {
          req._toParam = req.user.uniqueDeviceID;
          passport.authenticate('facebook-token')(req, res, next)
        },
        (req, res) =&gt; {
          res.send(req.user);
        }
    );
  </code></pre>
  
  <p>server passport strategy file</p>
  
  <pre><code>passport.use(
      new FacebookTokenStrategy(
          {
              clientID: keys.facebookAppID,
              clientSecret: keys.facebookAppSecret
          },
          async (req, accessToken, refreshToken, profile, done) =&gt; {  
                   console.log(req._toParam); 
                   //how to pass react-native-device-info deviceID to this callback?
                }
         )
  )
  </code></pre>
  
  <p>react native client side</p>
  
  <pre><code>const res = await server.post(`/auth/facebook/token?access_token=${tokenData.accessToken}&amp;uniqueDeviceID=${DeviceInfo.getUniqueId()}`);            
  </code></pre>
  
  <p>any help would be greatly appreciated.</p>