As bojeil said in the first answer (May 2016), the problem was related to him in single-threaded application workflows. But in later versions of firebase-ui, you can actually reset the widget, so you wonβt need to initialize it again.
All you have to do is save the link of the widget instance in a variable. Then, when you want to display it again, you use the same link, reset, and then restart it.
var ui; if (ui) { ui.reset(); } else { ui = new firebaseui.auth.AuthUI(firebase.auth()); } ui.start('#firebaseui-auth-container', uiConfig);
source share