flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_auth]: signInWithEmailAndPassword providerId returns null on Android

Open jezsung opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

Android

Description

final userCredential = await FirebaseAuth.instance.signInWithEmailAndPassword(email: '[email protected]', 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: '[email protected]', 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

firebase_auth: ^5.1.0
firebase_core: ^3.1.0

Additional context and comments

No response

jezsung avatar Jun 21 '24 20:06 jezsung

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

TarekkMA avatar Jun 24 '24 11:06 TarekkMA

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

Lyokone avatar Jun 24 '24 13:06 Lyokone