code: 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;
      }
docs: 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