@@ -1462,7 +1462,6 @@ - (NSDictionary *)multiFactorResolverToDict:(FIRMultiFactorResolver *)resolver {
1462
1462
}
1463
1463
#endif
1464
1464
1465
-
1466
1465
- (void )promiseRejectAuthException : (RCTPromiseRejectBlock)reject error : (NSError *)error {
1467
1466
NSDictionary *jsError = [self getJSError: error];
1468
1467
@@ -1730,24 +1729,24 @@ - (NSDictionary *)firebaseUserToDict:(FIRUser *)user {
1730
1729
NSMutableArray *enrolledFactors = [NSMutableArray array ];
1731
1730
1732
1731
for (FIRMultiFactorInfo *hint in hints) {
1733
- NSString *enrollmentTime =
1732
+ NSString *enrollmentTime =
1734
1733
[[[NSISO8601DateFormatter alloc ] init ] stringFromDate: hint.enrollmentDate];
1735
-
1736
- NSMutableDictionary *factorDict = [@{
1737
- @" uid" : hint.UID ,
1738
- @" factorId" : hint.factorID ,
1739
- @" displayName" : hint.displayName == nil ? [NSNull null ] : hint.displayName ,
1740
- @" enrollmentTime" : enrollmentTime,
1741
- // @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime
1742
- @" enrollmentDate" : enrollmentTime,
1743
- } mutableCopy];
1744
-
1745
- // only support phone mutli factor
1746
- if ([hint isKindOfClass: [FIRPhoneMultiFactorInfo class ]]) {
1747
- FIRPhoneMultiFactorInfo *phoneHint = (FIRPhoneMultiFactorInfo *)hint;
1748
- factorDict[@" phoneNumber" ] = phoneHint.phoneNumber ;
1749
- [enrolledFactors addObject: factorDict];
1750
- }
1734
+
1735
+ NSMutableDictionary *factorDict = [@{
1736
+ @" uid" : hint.UID ,
1737
+ @" factorId" : hint.factorID ,
1738
+ @" displayName" : hint.displayName == nil ? [NSNull null ] : hint.displayName ,
1739
+ @" enrollmentTime" : enrollmentTime,
1740
+ // @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime
1741
+ @" enrollmentDate" : enrollmentTime,
1742
+ } mutableCopy];
1743
+
1744
+ // only support phone mutli factor
1745
+ if ([hint isKindOfClass: [FIRPhoneMultiFactorInfo class ]]) {
1746
+ FIRPhoneMultiFactorInfo *phoneHint = (FIRPhoneMultiFactorInfo *)hint;
1747
+ factorDict[@" phoneNumber" ] = phoneHint.phoneNumber ;
1748
+ [enrolledFactors addObject: factorDict];
1749
+ }
1751
1750
}
1752
1751
return enrolledFactors;
1753
1752
}
0 commit comments