question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FirebaseAuth appears blank after successfully logging in and then signing out

See original GitHub issue

Hello,

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.

image 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

first time works second time doesn t

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:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
metiptoncommented, Aug 23, 2018

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?

0reactions
FrederickIgecommented, Sep 21, 2018

Same issue here. I have firebaseUI on both my login and register pages. Only shows on one page.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google authentication in firebase showing blank screen ...
It worked when I first logged in with a slight delay of 2 seconds. But then I logged out and tried to log...
Read more >
Authenticate with Firebase using Password-Based Accounts ...
Enable Email/Password sign-in: In the Firebase console, open the Auth section. On the Sign in method tab, enable the Email/password sign-in method and...
Read more >
SwiftUI: Email / Password Sign In with Firebase Auth (2023 ...
We'll specifically look at signing in, creating accounts, and signing out. We'll work on latest version of Swift and Xcode 12. … Show...
Read more >
Dive into Firebase Auth on Flutter: Email and Link Sign-in
The next step for this sample app is building out the registration UI. Since this part isn't directly related to Firebase Authentication, you ......
Read more >
Integrate 'Sign in with Apple' with Firebase Authentication
This article shows you how to handle user sign in, sign out and Apple ID's credential revoke when your app is using Firebase...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found