firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Popup closed by user when trying to sign in with Twitter

Open Lyokone opened this issue 2 years ago • 7 comments

Originally reported here: https://github.com/firebase/flutterfire/issues/10179

[REQUIRED] Describe your environment

  • Operating System version: macOS latest
  • Browser version: Chrome latest, Safari latest
  • Firebase SDK version: 9.15
  • Firebase Product: auth

[REQUIRED] Describe the problem

When sign in with Twitter, the popup is closed automatically before I can end the process with the error "closed by user".

Steps to reproduce:

Ensure that you are not signed in to twitter.com

const provider = new TwitterAuthProvider();
const auth = getAuth();
signInWithPopup(auth, provider)
  .then((result) => {
  }).catch((error) => {
// You get here
  });

Lyokone avatar Dec 27 '22 13:12 Lyokone

Hi @Lyokone, thanks for the report. I was able to reproduce the behavior. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share.

jbalidiong avatar Dec 28 '22 15:12 jbalidiong

In addition, I seeing that the popup is fine if you are logged into twitter in another tab, but if not when presented with the popup, it shows a login button. If you don't click the button the error will not be returned, but when you click 'sign in' it will then return the error that the user closed the popup before the process completed. Please note that the sign in link will take you to the login page inside the popup and it will continue.

kraighamady avatar Jan 03 '23 16:01 kraighamady

Facing the same issue. When user is already logged into twitter in another tab then sign in with twitter just works fine. But when user had logged out twitter then tried to sign in with twitter it asks for the sign in. As soon as when we click on sign in button then it is returning error Popup closed by User. This is in web app

theone3nu avatar Jan 05 '23 12:01 theone3nu

Update: This issue now seems to be happening if the user is signed into a second window or not. To work around the original issue, I asked the user to log into twitter in a separate window and then come back to my app to complete the link/login. This is no longer working. @jbalidiong do you know when this might be investigated? Thanks!

kraighamady avatar Jan 15 '23 07:01 kraighamady

@kraighamady, apologies for the delay. The Auth team and I are currently investigating the issue at hand. We'll provide any update if we have any information to share.

jbalidiong avatar Jan 18 '23 16:01 jbalidiong

@jbalidiong It seems to be working more often now (so far). I will keep an eye on it and will post more information when I see it again. I did see additional error information the last time it presented that may help.

kraighamady avatar Jan 18 '23 21:01 kraighamady

Are there any updates on this? I am facing the same issue with Microsoft login.

Raviteja11122 avatar Sep 19 '24 18:09 Raviteja11122