Skip to content

Commit c630eaa

Browse files
author
Nicolas Garnier
committed
Only one instance can be ran at the same time so removing the feature.
1 parent a264f33 commit c630eaa

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,6 @@ import './firebaseui-overrides.global.css'; // Import globally.
269269
If you would like to see an example of styling, have a look at the [example app](./example).
270270

271271

272-
## Using multiple instances
273-
274-
In the case where you would need to load multiple instances of `FirebaseAuth` at the same time you need to set them up with a different ID using the `elementId` attribute. For instance:
275-
276-
```js
277-
<StyledFirebaseAuth elementId="auth_1" uiConfig={this.uiConfig} firebaseAuth={firebase.auth()}/>
278-
<StyledFirebaseAuth elementId="auth_2" uiConfig={this.otherUiConfig} firebaseAuth={firebase.auth()}/>
279-
```
280-
281-
282272
## Contributing
283273

284274
We'd love that you contribute to the project. Before doing so please read our [Contributor guide](CONTRIBUTING.md).

src/FirebaseAuth.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export default class FirebaseAuth extends React.Component {
3535

3636
this.uiConfig = props.uiConfig;
3737
this.firebaseAuth = props.firebaseAuth;
38-
this.elementId = props.elementId || ELEMENT_ID;
3938
this.className = props.className;
4039
}
4140

@@ -75,9 +74,6 @@ export default class FirebaseAuth extends React.Component {
7574
uiConfig: Object,
7675
// The Firebase App auth instance to use.
7776
firebaseAuth: Object,
78-
// The ID of the underlying container that we'll generate.
79-
// Use this if you use more than one instance at a time in your app.
80-
elementId?: String,
8177
// Callback that will be passed the FirebaseUi instance before it is
8278
// started. This allows access to certain configuration options such as
8379
// disableAutoSignIn().
@@ -90,7 +86,7 @@ export default class FirebaseAuth extends React.Component {
9086
*/
9187
render() {
9288
return (
93-
<div className={this.className} id={this.elementId}/>
89+
<div className={this.className} id={ELEMENT_ID}/>
9490
);
9591
}
9692
}

0 commit comments

Comments
 (0)