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.

Chrome extension signInSuccess never called

See original GitHub issue

I’m developing a chrome extension and trying to signup/login with email/password inside browser_action popup. The UI shows correctly, and flow seems to work as expected. During signup, user is created in the associated firebase application, however signInSuccess is never called. Neither it’s called if I try to login that user after the sign up. No error in console, nothing on UI - the login progress bar shows and hides in a second.

As per onAuthStateChanged, user is alwasy null:

firebase.auth().onAuthStateChanged(function (user) {
   console.log(user)
   alert(user)
});

What am I missing here?

From the code below, alert(“uiShow”) is shown, but alert(“Signed in as …”) never

the auth code:

uiConfig = {
    signInSuccessUrl: 'http://google.com',
    signInOptions: [
        {
            provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
            requireDisplayName: false
        }
    ],
    signInFlow: 'popup',
    callbacks: {
        signInSuccess: function (currentUser, credential, redirectUrl) {
            alert("Signed in as " + currentUser + " with credential " + credential);
            return false;
        }.bind(this),
        uiShown: function () {
            alert("uiShow");
        }
    },
    tosUrl: 'http://google.com'

};

var ui = new firebaseui.auth.AuthUI(firebase.auth());
// The start method will wait until the DOM is loaded.
ui.start('#firebaseui-auth-container', uiConfig);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bojeil-googlecommented, Nov 29, 2017

You’re welcome. Thanks for reporting this issue! The fix is in the repo. We’ll probably do a release next week with some other stuff. In the meantime, you can continue using the gstatic version.

0reactions
bojeil-googlecommented, Feb 6, 2018

This should be now fixed in firebase hosted CDNs: https://github.com/firebase/firebaseui-web/releases/tag/v2.6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase UI in Chrome extension: signInSuccess never called
The problem is that signInSuccess is never called neither in signin nor in signup flow. Moreover firebase.auth().onAuthStateChanged(.
Read more >
Extensions disabled by Chrome - Chrome Web Store Help
Extensions that have not been published on the Chrome Web Store are grayed out and you won't be able to turn them back...
Read more >
Easily add sign-in to your Web app with FirebaseUI - Google
Easily add sign-in to your Web app with FirebaseUI ... FirebaseUI is a library built on top of the Firebase Authentication SDK that...
Read more >
Diff - 548625f2e2adf08641439345f8713789c98b1431^! - chromium ...
-26,9 +26,6 @@ #include "chrome/browser/extensions/webstore_installer.h" #include ... error) OVERRIDE; - - // Called when signin is complete or not needed.
Read more >
Just Not Sorry -- the Chrome extension
A Chrome extension that warns you when you write emails using words which undermine your message.
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