Skip to content

Commit fb64643

Browse files
fix(auth): Fixed bug that sets email to nil on iOS when the User has no provider. (#8209)
1 parent 9976d9d commit fb64643

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/firebase_auth/firebase_auth/ios/Classes/FLTFirebaseAuthPlugin.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,12 +1252,6 @@ + (NSMutableDictionary *)getNSDictionaryFromUser:(FIRUser *)user {
12521252
NSMutableDictionary *userData = [[self getNSDictionaryFromUserInfo:user] mutableCopy];
12531253
NSMutableDictionary *metadata = [NSMutableDictionary dictionary];
12541254

1255-
// This code is necessary to avoid an iOS issue where when unlinking the `password` provider
1256-
// the previous email still remains on the currentUser.
1257-
if ([user.providerData count] == 0) {
1258-
userData[@"email"] = [NSNull null];
1259-
}
1260-
12611255
// metadata.creationTimestamp as milliseconds
12621256
long creationDate = (long)([user.metadata.creationDate timeIntervalSince1970] * 1000);
12631257
metadata[@"creationTime"] = @(creationDate);

0 commit comments

Comments
 (0)