Chrome extension signInSuccess never called
See original GitHub issueI’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:
- Created 6 years ago
- Comments:15 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
This should be now fixed in firebase hosted CDNs: https://github.com/firebase/firebaseui-web/releases/tag/v2.6.0