-
Notifications
You must be signed in to change notification settings - Fork 484
Closed
Labels
Description
iOS version: 11.4
Firebase SDK version: FirebaseCore 5.5.0
FirebaseUI version: 5.2.0
CocoaPods Version: 1.5.3
Step 3: Describe the problem:
When FUIAuth.defaultAuthUI()?.shouldAutoUpgradeAnonymousUsers = true, calling Auth.auth().currentUser?.providerData[0] from func authUI(_ authUI: FUIAuth, didSignInWith authDataResult: AuthDataResult?, error: Error?) results in a nil value.
So the display name and photoURL are not reachable. If the anonymous users bit is set to false, then providerData is no longer empty and works as expected.
Steps to reproduce:
- set FUIAuth.defaultAuthUI()?.shouldAutoUpgradeAnonymousUsers = true
- call Auth.auth().currentUser?.providerData[0] from func authUI(_ authUI: FUIAuth, didSignInWith authDataResult: AuthDataResult?, error: Error?)
- Sign in using a provider from the firebase UI picker
- Observe that providerData is an empty array.
Observed Results:
providerData is an empty array []
Expected Results:
providerData should have length 1 with the login information after signing in with a firebase UI login provider.
ahaverty