firebase / firebase/firebase-js-sdk

Firebase auth with Facebook does not work on Android

Open
#8,435 10 comments 3 reactions 0 assignees View on GitHub
api: auth bug needs-attention
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

Android 13

### Browser Version

Chrome 127.0.6533.103

### Firebase SDK Version

10.13.0

### Firebase SDK Product:

Auth

### Describe your project's tooling

React app

### Describe the problem

I am trying to login with signInWithPopup (which works on desktop and ios devices) and I get a "auth/popup-closed-by-user" without any additional details.
```js
const auth = getAuth();
const provider = new FacebookAuthProvider();
provider.addScope('email');
provider.setCustomParameters({
'display': 'popup'
});
signInWithPopup(auth, provider)
.then(...)
.catch(error){}
```

### Steps and code to reproduce issue

On an Android device:

- go to https://upreality.store
- scroll down to the "login" button
- click it, then Facebook login
- login to Facebook
- the popup closes and you are redirected back to the initial page, after some times an error is returned

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.