firebase / firebase/firebase-js-sdk

Popup closed by user when trying to sign in with Twitter

Open
#6,910 7 comments 1 reaction 0 assignees View on GitHub
api: auth bug stack:FlutterWeb
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

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
});
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.