firebaseui-web-react: Email provider does not work in a popup

when setting the option signInFlow: 'popup', it works properly for Facebook and Google authentication, but does not work for email authentication. I am instead redirected to https://www.accountchooser.com/redirect.html#localhost:3000

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 14
  • Comments: 17 (2 by maintainers)

Commits related to this issue

Most upvoted comments

If you want to disable accountchooeser, you can disable it by adding: credentialHelper: 'none' in the config object.

Hi,

I have the same problem, and I’ve found an ugly solution, but well, it works 😃

signInFlow: firebase.auth().isSignInWithEmailLink(window.location.href) ? 'redirect' : 'popup',

I tried popup mode with firebaseui: https://github.com/firebase/firebaseui-web#demo It works for me. So it should be something wrong with the react-wrapper. I’ll look into it when I have time. Thanks for reporting the issue.

@dankawka where is the questionable snippet of code you mentioned? This bit:

if (this.uiConfig.signInFlow === 'popup') {
        this.firebaseUiWidget.reset();
      }

I’m trying to figure out why with the StyledFirebaseAuth component the uiconfig.callbacks are not called for email provider using sign in link flow if an observer is registered for onAuthStateChanged. Would also be good to know why popup flow is broken here.

So yes, I can confirm that the email link login does not work if the mode is set to popup. So the simple solution is to change the mode right? Well - when I do that, it seems that google stops working! So I’m stuck with making a choice between popups with google, or no popups with email, but then no google. I haven’t tested all the other providers yet. I’d love to be able to get popups + google + email link all working happily together.

Setting the credentialHelper to none didn’t seem to have any real effect one way or the other for me.

@swiftanthony I am having the same issue, but I don’t have a popup enabled. I think there is something wrong with the StyledFirebaseAuth and the emailLink auth method… Any ideas?