Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup closed by user when trying to sign in with Twitter #6910

Open
Lyokone opened this issue Dec 27, 2022 · 7 comments
Open

Popup closed by user when trying to sign in with Twitter #6910

Lyokone opened this issue Dec 27, 2022 · 7 comments

Comments

@Lyokone
Copy link

Lyokone commented Dec 27, 2022

Originally reported here: firebase/flutterfire#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
  });
@jbalidiong
Copy link
Contributor

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 jbalidiong added the bug label Dec 28, 2022
@kraighamady
Copy link

kraighamady commented Jan 3, 2023

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.

@theone3nu
Copy link

theone3nu commented Jan 5, 2023

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

@kraighamady
Copy link

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!

@jbalidiong
Copy link
Contributor

@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.

@kraighamady
Copy link

@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.

@Raviteja11122
Copy link

Raviteja11122 commented Sep 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants