We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a0f9a commit a6bdf3eCopy full SHA for a6bdf3e
packages/auth/src/core/user/user_impl.ts
@@ -347,10 +347,9 @@ export class UserImpl implements UserInternal {
347
const coreAccount = response.users[0];
348
_assert(coreAccount.localId !== undefined, AuthErrorCode.INTERNAL_ERROR);
349
350
- const providerData: UserInfo[] = [];
351
- if (coreAccount.providerUserInfo !== undefined) {
352
- providerData = extractProviderData(coreAccount.providerUserInfo);
353
- }
+ const providerData: UserInfo[] =
+ (coreAccount.providerUserInfo !== undefined) ?
+ extractProviderData(coreAccount.providerUserInfo) : [];
354
355
const isAnonymous =
356
!(coreAccount.email && coreAccount.passwordHash) && !providerData?.length;
0 commit comments