@react-native-firebase/auth 23.0.0 → 23.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [23.1.0](https://github.com/invertase/react-native-firebase/compare/v23.0.1...v23.1.0) (2025-08-19)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/auth
9
+
10
+ ## [23.0.1](https://github.com/invertase/react-native-firebase/compare/v23.0.0...v23.0.1) (2025-08-12)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **auth, ios:** filter out non-phone multifactor to avoid crash ([#8645](https://github.com/invertase/react-native-firebase/issues/8645)) ([90b6d98](https://github.com/invertase/react-native-firebase/commit/90b6d988d0c0ca216cbdd47e7900aa0b629bdc43))
15
+
6
16
  ## [23.0.0](https://github.com/invertase/react-native-firebase/compare/v22.4.0...v23.0.0) (2025-08-07)
7
17
 
8
18
  ### ⚠ BREAKING CHANGES
@@ -1462,15 +1462,6 @@ RCT_EXPORT_METHOD(useEmulator
1462
1462
  }
1463
1463
  #endif
1464
1464
 
1465
- - (NSString *)getJSFactorId:(NSString *)factorId {
1466
- if ([factorId isEqualToString:@"1"]) {
1467
- // Only phone is supported by the front-end so far
1468
- return @"phone";
1469
- }
1470
-
1471
- return factorId;
1472
- }
1473
-
1474
1465
  - (void)promiseRejectAuthException:(RCTPromiseRejectBlock)reject error:(NSError *)error {
1475
1466
  NSDictionary *jsError = [self getJSError:error];
1476
1467
 
@@ -1737,19 +1728,25 @@ RCT_EXPORT_METHOD(useEmulator
1737
1728
  - (NSArray<NSMutableDictionary *> *)convertMultiFactorData:(NSArray<FIRMultiFactorInfo *> *)hints {
1738
1729
  NSMutableArray *enrolledFactors = [NSMutableArray array];
1739
1730
 
1740
- for (FIRPhoneMultiFactorInfo *hint in hints) {
1731
+ for (FIRMultiFactorInfo *hint in hints) {
1741
1732
  NSString *enrollmentTime =
1742
1733
  [[[NSISO8601DateFormatter alloc] init] stringFromDate:hint.enrollmentDate];
1743
- [enrolledFactors addObject:@{
1734
+
1735
+ NSMutableDictionary *factorDict = [@{
1744
1736
  @"uid" : hint.UID,
1745
- @"factorId" : [self getJSFactorId:(hint.factorID)],
1737
+ @"factorId" : hint.factorID,
1746
1738
  @"displayName" : hint.displayName == nil ? [NSNull null] : hint.displayName,
1747
1739
  @"enrollmentTime" : enrollmentTime,
1748
1740
  // @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime
1749
1741
  @"enrollmentDate" : enrollmentTime,
1750
- // phoneNumber only present on FIRPhoneMultiFactorInfo
1751
- @"phoneNumber" : hint.phoneNumber == nil ? [NSNull null] : hint.phoneNumber,
1752
- }];
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
+ }
1753
1750
  }
1754
1751
  return enrolledFactors;
1755
1752
  }
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '23.0.0';
2
+ module.exports = '23.1.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "23.0.0",
3
+ "version": "23.1.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.",
6
6
  "main": "lib/index.js",
@@ -27,12 +27,12 @@
27
27
  "plist": "^3.1.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@react-native-firebase/app": "23.0.0",
30
+ "@react-native-firebase/app": "23.1.0",
31
31
  "expo": ">=47.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/plist": "^3.0.5",
35
- "expo": "^52.0.46"
35
+ "expo": "^53.0.20"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "expo": {
@@ -43,5 +43,5 @@
43
43
  "access": "public",
44
44
  "provenance": true
45
45
  },
46
- "gitHead": "14c35416e62f3626d6c2aee2ffd000bd2337884b"
46
+ "gitHead": "b152d06e706e499464829f856804e29565118cc5"
47
47
  }
@@ -1 +1 @@
1
- {"root":["./src/index.ts","./src/pluginConfig.ts","./src/ios/index.ts","./src/ios/openUrlFix.ts","./src/ios/urlTypes.ts"],"version":"5.8.3"}
1
+ {"root":["./src/index.ts","./src/pluginConfig.ts","./src/ios/index.ts","./src/ios/openUrlFix.ts","./src/ios/urlTypes.ts"],"version":"5.9.2"}