File tree 1 file changed +5
-3
lines changed
packages/auth/ios/RNFBAuth
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1686,13 +1686,15 @@ - (NSDictionary *)firebaseUserToDict:(FIRUser *)user {
1686
1686
NSMutableArray *enrolledFactors = [NSMutableArray array ];
1687
1687
1688
1688
for (FIRPhoneMultiFactorInfo *hint in hints) {
1689
- NSString *enrollmentDate =
1689
+ NSString *enrollmentTime =
1690
1690
[[[NSISO8601DateFormatter alloc ] init ] stringFromDate: hint.enrollmentDate];
1691
1691
[enrolledFactors addObject: @{
1692
1692
@" uid" : hint.UID ,
1693
1693
@" factorId" : [self getJSFactorId: (hint.factorID)],
1694
1694
@" displayName" : hint.displayName == nil ? [NSNull null ] : hint.displayName ,
1695
- @" enrollmentDate" : enrollmentDate,
1695
+ @" enrollmentTime" : enrollmentTime,
1696
+ // @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime
1697
+ @" enrollmentDate" : enrollmentTime,
1696
1698
}];
1697
1699
}
1698
1700
return enrolledFactors;
@@ -1745,4 +1747,4 @@ - (FIRActionCodeSettings *)buildActionCodeSettings:(NSDictionary *)actionCodeSet
1745
1747
return settings;
1746
1748
}
1747
1749
1748
- @end
1750
+ @end
You can’t perform that action at this time.
0 commit comments