FirebaseAuth appears blank after successfully logging in and then signing out
See original GitHub issueHello,
I’m finding that, if I sign in using the FirebaseAuth
component and in the same session logout (using firebase.auth().signOut()
), when I try to render the component again, for example for the next user to sign in, the component is blank.
The #firebaseui_container
is in the DOM Tree but has no content.
I’ve seen the previous issue here and thought they might be related so tried using the firebaseui.auth.AuthUI.getInstance(opt_appId)
method to obtain the AuthUI instance and reset it, however that did not fix the problem.
I did however notice that when inspecting the instance, on the second time, one of the fields is callback
rather than passwordSignIn
. I’ve attached screenshots
Here is my UI config
uiConfig = {
signInFlow: 'popup',
signInOptions: [firebase.auth.EmailAuthProvider.PROVIDER_ID],
callbacks: {
// Avoid redirects after sign-in.
signInSuccess: () => false
}
};
I’m using Redux and React-router if that could have any effect.
Many thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (8 by maintainers)
Top GitHub Comments
I am still having this issue. Has there been any resolution on how to get the widget to come back after signing in then signing out?
Same issue here. I have firebaseUI on both my login and register pages. Only shows on one page.