You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds firebaseui.auth.AuthUI.getInstance(appId) to get the corresponding AuthUI instance as specified by the provided appId.
Adds a destroy method to destroy an AuthUI instance.
Fixes Nascar buttons getting grayed when user tabs through them.
Hides cancel button when only Email provider is used and accountchooser.com is disabled.
PiperOrigin-RevId: 162376230
Change-Id: Ie7cc3c0f86fef05bf5322af342cc1abc2e6037d1
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -800,6 +800,26 @@ middle of performing a sign-in flow. You should generally avoid re-rendering the
800
800
widget in the middle of an action, but if you do, to avoid the warning, you
801
801
should use the `reset()` method before re-rendering the widget.
802
802
803
+
### Tips for initializing a new UI instance with the same Auth instance
804
+
805
+
When trying to initialize a new UI widget with the same Auth instance, you will
806
+
get an `app/duplicate-app` error. In general, you should keep a reference to
807
+
the AuthUI instance and instead call `reset()` and then `start(...)` again to
808
+
re-render the widget.
809
+
810
+
If you don't keep a reference to that AuthUI instance, you can get the reference
811
+
by calling `firebaseui.auth.AuthUI.getInstance(appId)` where `appId` is the same
812
+
as the optional one used to initialize the AuthUI instance. If none was provided
813
+
just call `firebaseui.auth.AuthUI.getInstance()`.
814
+
815
+
This is the recommended way but you also have the option to delete the AuthUI
816
+
instance by calling `ui.delete()` which returns a promise that resolves on
817
+
successful deletion. You can then initialize a new UI instance with the same
818
+
Auth instance without getting the `app/duplicate-app` error. At any time, you
819
+
can only have one AuthUI instance with the same `appId` or the same Auth
820
+
instance.
821
+
822
+
803
823
### FirebaseUI is broken in IE11 when deployed on a local server accessed through `localhost` (but works when deployed on a remote server)
804
824
805
825
Several developers reported issues with IE11 when testing the widget integration on a server deployed locally, accessing the application through a `localhost` address. However, it doesn't impact applications deployed on a server (as you can verify in the [demo app](https://fir-ui-demo-84a6c.firebaseapp.com/)).
0 commit comments