Closed henrik-d closed 2 years ago
I can verify this, we are seeing the same issue.
When reloading the page, the providerData appears.
As an intermediary fix, you can do the following:
if (fbUser.providerData && fbUser.providerData.length === 0) {
console.debug('User data is not fully loaded, initiate reload');
fbUser.reload().then(() => // update your UI here...);
}
Thanks for the report folks; the linked PR will fix the issue. You'll need to update your version of the Firebase JS SDK (i.e. not Firebase UI) to benefit from the fix once the PR is merged/released
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Since updating to firebaseui 6.0.0, after signing up or signing in the
currentUser.providerData
is empty. This problem did not occur in v4 and v5.Relevant Code:
providerData
is empty when using firebaseui for signIn:When using firebase directly, it works as expected: