src/auth/FirebaseAuth.js
function (stringOrProvider) {
      var provider;
      if (typeof stringOrProvider == "string") {
        var providerID = stringOrProvider.slice(0, 1).toUpperCase() + stringOrProvider.slice(1);
        provider = new firebase.auth[providerID+"AuthProvider"]();
      } else {
        provider = stringOrProvider;
      }
      return provider;
    }
function (stringOrProvider) {
      var provider;
      if (typeof stringOrProvider == "string") {
        var providerID = stringOrProvider.slice(0, 1).toUpperCase() + stringOrProvider.slice(1);
        provider = new firebase.auth[providerID+"AuthProvider"]();
      } else {
        provider = stringOrProvider;
      }
      return provider;
    }
function ( stringOrProvider ) { var provider ; if ( typeof stringOrProvider == "string" ) { var providerID = stringOrProvider . slice ( 0 , 1 ) . toUpperCase ( ) + stringOrProvider . slice ( 1 ) ; provider = new firebase . auth [ providerID + "AuthProvider" ] ( ) ; } else { provider = stringOrProvider ; } return provider ; }
Helper method to turn provider names into AuthProvider instances

@param {object} stringOrProvider Provider ID string to AuthProvider instance
@return {firebdase.auth.AuthProvider} A valid AuthProvider instance
Helper method to turn provider names into AuthProvider instances