Skip to content

Commit b1cee9a

Browse files
authored
fix(auth, ios): factorId nil check (#7541)
1 parent 2c6905e commit b1cee9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/ios/RNFBAuth/RNFBAuthModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ - (NSDictionary *)firebaseUserToDict:(FIRUser *)user {
16491649
[[[NSISO8601DateFormatter alloc] init] stringFromDate:hint.enrollmentDate];
16501650
[enrolledFactors addObject:@{
16511651
@"uid" : hint.UID,
1652-
@"factorId" : [self getJSFactorId:(hint.factorID)],
1652+
@"factorId" : hint.factorID == nil ? [NSNull null] : [self getJSFactorId:(hint.factorID)],
16531653
@"displayName" : hint.displayName == nil ? [NSNull null] : hint.displayName,
16541654
@"enrollmentDate" : enrollmentDate,
16551655
}];

0 commit comments

Comments
 (0)