ReactJS app authentication: Firebase+FirebaseUI Uncaught Error: Firebase App named '[DEFAULT]-firebaseui-temp' already exists

六眼飞鱼酱① 提交于 2019-12-06 08:52:18
bojeil

You should not initialize a new FirebaseUI instance each time you show it:

var ui = new firebaseui.auth.AuthUI(firebase.auth());

This should be initialized externally. If you wish to render, call

ui.start('#firebaseui-auth-container', uiConfig);

When you want to remove, call:

ui.reset();

But do not initialize a new instance each time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!