title: Google sign-in and passport.js - how to handle calls from Android and iOS using the same route?
body: <p>I am using passport.js to authenticate mobile users from Android and iOS app.</p>
  
  <pre><code>var GoogleTokenStrategy = require('passport-google-id-token');
  var passport = require('passport');
  
  module.exports = function(app) {
       app.use(passport.initialize());
       app.use(passport.session());
  
       passport.use(new GoogleTokenStrategy({
          clientID: "013323487228-563u02i6dk3vj3ic5q4l9g5r79vhqc4b.apps.googleusercontent.com"
       }, function(parsedToken, googleId, done) {
          // logic for finding user in db
       }
       ));
  
      app.post('/auth/google',
          passport.authenticate('google-id-token'),
          function (req, res) {
          res.send(req.user? 200 : 401);
          }
      );
  }
  </code></pre>
  
  <p>However, client IDs for Android and iOS app are different. How can I handle this? Should I make different endpoints for both cases? Two different strategies? Or even two different routes files for each case?</p>