firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.74k stars 3.98k forks source link

[firebase_auth]: signInWithEmailAndPassword providerId returns null on Android #12985

Open jezsung opened 5 months ago

jezsung commented 5 months ago

Is there an existing issue for this?

Which plugins are affected?

Auth

Which platforms are affected?

Android

Description

final userCredential = await FirebaseAuth.instance.signInWithEmailAndPassword(email: 'test@test.com', password: '000000');
print(userCredential.additionalUserInfo!.providerId); // => null

The providerId is null on Android while it's 'password' on iOS.

Reproducing the issue

final userCredential = await FirebaseAuth.instance.signInWithEmailAndPassword(email: 'test@test.com', password: '000000');
print(userCredential.additionalUserInfo!.providerId); // => null

Firebase Core version

3.1.0

Flutter Version

3.19.5

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
```yaml firebase_auth: ^5.1.0 firebase_core: ^3.1.0 ```

Additional context and comments

No response

TarekkMA commented 5 months ago

@jezsung Thank you for reporting this issue. I've been able to reproduce it. I've informed the team, and we will be working on a fix for it.

Lyokone commented 5 months ago

Opened here : https://github.com/firebase/firebase-android-sdk/issues/6054