firebase / firebase/firebase-tools

emulator TwitterAuthProvider.credentialFromResult always returns null

Open
#6,339 1 comment 0 reactions 1 assignee Claimed by @malcolmdeck View on GitHub
emulators: auth type: feature request
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### Operating System

macOS

### Browser Version

Safari 16.5.2

### Firebase SDK Version

10.1.0

### Firebase SDK Product:

Auth

### Describe your project's tooling

index.html with source tag.

### Describe the problem

Emulator TwitterAuthProvider.credentialFromResult always returns null

### Steps and code to reproduce issue

The following code works without using emulator

```
try {
const providerTwit = new TwitterAuthProvider();
providerTwit.setCustomParameters({ "lang" : "es" });
const ucTwit = await signInWithPopup(auth, providerTwit);
console.log("==TWITTER==");
console.Log(ucTwit);
const twitterCred = TwitterAuthProvider.credentialFromResult(ucTwit);
console.log("==TWITTER CRED==");
console.log(twitterCred);
} catch(e) {
console.error(e);
}
```

With the emulator, `twitterCred` always returns null. This problem doesn't happen with the Facebook, GitHub, or Google auth providers.

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.