firebase-ios-sdk: invalid providers after call to fetchSignInMethodsForEmail using SignIn With Apple
Environment
- Xcode version: 11.3.1
- Firebase SDK version: 6.14.0
- Firebase Component: Auth (Auth, Core, Database, Firestore, Messaging, Storage, etc)
- Component version: 6.14.0
- Using Carthage
Problem description
cannot retrieve the correct providers for a given email address.
Steps to reproduce:
- login using a Facebook account with the same email as your Apple ID
- login using Sign in with apple and hide your email address
- stop using sign in with apple in your iCloud settings
- login using sign with apple again but without hiding your email address
- try to update your user email with real email address
What happened? How can we make the problem occur?
you receive an error which is understandable, and I also know that we have to ask explicitly the user to link is social media account with his hidden email but if you go to the console then and you search for the real user email you’ll see both account appear which seems logical but if your try to call - (void)fetchSignInMethodsForEmail:(NSString *)email, completion:(nullable FIRSignInMethodQueryCallback)completion; with the same mail you only get apple.com has a provider even if the mail change has failed and Facebook appear to be the provider associated to that email address.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 32 (9 by maintainers)
It seems the documentation on that method is incomplete and it will only return the set of sign-in methods for a single user (not for all users sharing the email).
@bojeil-google when the email update fails, is it still setting the provider-level email despite returning an error?
Hi guys, I’m also facing this problem … Are there any updates ??
How can we manage an Apple user with Hidden Email who for his own reasons decides to use his Apple email to access our apps?
The same thing seems to happen with Facebook when a user decides not to show his email … If at the next login he changes his mind and wants to show the email, his Firebase account continues to show an invisible email even if the user decided to show it …
How can we resolve the management of anonymous access for Apple and / or Facebook?
It gives me apple