diff --git a/packages/auth/ios/RNFBAuth/RNFBAuthModule.m b/packages/auth/ios/RNFBAuth/RNFBAuthModule.m index 76862bc069..30290ace30 100644 --- a/packages/auth/ios/RNFBAuth/RNFBAuthModule.m +++ b/packages/auth/ios/RNFBAuth/RNFBAuthModule.m @@ -1686,13 +1686,15 @@ - (NSDictionary *)firebaseUserToDict:(FIRUser *)user { NSMutableArray *enrolledFactors = [NSMutableArray array]; for (FIRPhoneMultiFactorInfo *hint in hints) { - NSString *enrollmentDate = + NSString *enrollmentTime = [[[NSISO8601DateFormatter alloc] init] stringFromDate:hint.enrollmentDate]; [enrolledFactors addObject:@{ @"uid" : hint.UID, @"factorId" : [self getJSFactorId:(hint.factorID)], @"displayName" : hint.displayName == nil ? [NSNull null] : hint.displayName, - @"enrollmentDate" : enrollmentDate, + @"enrollmentTime" : enrollmentTime, + // @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime + @"enrollmentDate" : enrollmentTime, }]; } return enrolledFactors; @@ -1745,4 +1747,4 @@ - (FIRActionCodeSettings *)buildActionCodeSettings:(NSDictionary *)actionCodeSet return settings; } -@end \ No newline at end of file +@end