-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase_auth]: Email is not returned when calling signInWithCredential with Google Credentials #13467
Comments
Hi @gurgenAya , thanks for the report. I'm unable to reproduce this issue. What version of |
@SelaseKay Thanks for looking. The version of firebase auth is ^4.16.0. |
Kindly upgrade to the latest version (5.3.1) and try again. |
@SelaseKay Updated to the latest versions of all packages from Firebase, but the issue remains. |
Have you tried testing with other email addresses? |
@SelaseKay, I have tried using several different email addresses. The issue also persists when you use Apple Signin and Apple Provider with signInWithCredential. Please note, as mentioned in the original report this only happens when When changing the Firebase Auth setting User account linking to Create multiple accounts for each identity provider from Firebase Console Auth Settings. |
Hi @gurgenAya , I followed your steps but can't seem to reproduce this issue. The email is always returned in my case. I tested on both Android and iOS. |
@SelaseKay I can provide a minimal reproducible version, but the fact that the project must be linked to a firebase project with Google/Apple Auth integrations makes it impossible to share it publically. |
Can you create new project on your end and try it with that to see if the issue still persists? |
Hey @gurgenAya. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android, iOS
Description
When changing the Firebase Auth setting
User account linking
toCreate multiple accounts for each identity provider
from Firebase Console, the Auth signInWithCredential behavior is getting changed.UserCredential.user.email is null in that case, however GoogleUser info contains the email field.
Reproducing the issue
Make sure in Firebase Console -> Authentication -> Setting -> User account linking is set to
Create multiple accounts for each identity provider
.Sign in with Google and use Google provider to signInWithCredential.
Code Example:
Repeat the same test with User account linking set to
Link accounts that use the same email
and see that email is available in both checkpoints.Firebase Core version
2.42.2
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: