lib/authentication/oauth.js
function setupStrategies(auth) {
    var result = {};
    if (auth.maintenance === 'token') {
      result = {

        facebook: require('passport-facebook').Strategy,
        twitter: require('passport-twitter').Strategy
      };
    } else {
      result = {
        google: require('passport-google-oauth').OAuth2Strategy,
        facebook: require('passport-facebook').Strategy,
        twitter: require('passport-twitter').Strategy
      };
    }
    return result;
  }
function setupStrategies(auth) {
    var result = {};
    if (auth.maintenance === 'token') {
      result = {

        facebook: require('passport-facebook').Strategy,
        twitter: require('passport-twitter').Strategy
      };
    } else {
      result = {
        google: require('passport-google-oauth').OAuth2Strategy,
        facebook: require('passport-facebook').Strategy,
        twitter: require('passport-twitter').Strategy
      };
    }
    return result;
  }
function setupStrategies ( auth ) { var result = { } ; if ( auth . maintenance === 'token' ) { result = { facebook : require ( 'passport-facebook' ) . Strategy , twitter : require ( 'passport-twitter' ) . Strategy } ; } else { result = { google : require ( 'passport-google-oauth' ) . OAuth2Strategy , facebook : require ( 'passport-facebook' ) . Strategy , twitter : require ( 'passport-twitter' ) . Strategy } ; } return result ; }
setup strategies that we can use google OAuth2Strategy requires session, which we do not setup if using token
setup strategies that we can use google OAuth2Strategy requires session which we do not setup if using token