@react-native-firebase/auth 16.5.1 → 16.5.2

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,12 @@
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
+ ### [16.5.2](https://github.com/invertase/react-native-firebase/compare/v16.5.1...v16.5.2) (2023-01-23)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **auth, android:** use a safe copy of auth provider info to avoid crash ([2a90136](https://github.com/invertase/react-native-firebase/commit/2a90136cce0db6ca0f253003643f8bd856fd46a0)), closes [#6798](https://github.com/invertase/react-native-firebase/issues/6798)
11
+
6
12
  ### [16.5.1](https://github.com/invertase/react-native-firebase/compare/v16.5.0...v16.5.1) (2023-01-20)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/auth
@@ -70,6 +70,7 @@ import io.invertase.firebase.common.ReactNativeFirebaseEventEmitter;
70
70
  import io.invertase.firebase.common.ReactNativeFirebaseModule;
71
71
  import io.invertase.firebase.common.SharedUtils;
72
72
  import java.text.SimpleDateFormat;
73
+ import java.util.ArrayList;
73
74
  import java.util.Date;
74
75
  import java.util.HashMap;
75
76
  import java.util.Iterator;
@@ -2055,7 +2056,8 @@ class ReactNativeFirebaseAuthModule extends ReactNativeFirebaseModule {
2055
2056
  private WritableArray convertProviderData(
2056
2057
  List<? extends UserInfo> providerData, FirebaseUser user) {
2057
2058
  WritableArray output = Arguments.createArray();
2058
- for (UserInfo userInfo : providerData) {
2059
+ ArrayList<? extends UserInfo> providerDataCopy = new ArrayList(providerData);
2060
+ for (UserInfo userInfo : providerDataCopy) {
2059
2061
  // remove 'firebase' provider data - android fb sdk
2060
2062
  // should not be returning this as the ios/web ones don't
2061
2063
  if (!FirebaseAuthProvider.PROVIDER_ID.equals(userInfo.getProviderId())) {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '16.5.1';
2
+ module.exports = '16.5.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "16.5.1",
3
+ "version": "16.5.2",
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",
@@ -28,7 +28,7 @@
28
28
  "plist": "^3.0.5"
29
29
  },
30
30
  "peerDependencies": {
31
- "@react-native-firebase/app": "16.5.1"
31
+ "@react-native-firebase/app": "16.5.2"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@types/plist": "^3.0.2"
38
38
  },
39
- "gitHead": "fafaf580f384e8c4b47788adfab0b29ee2cfd5c0"
39
+ "gitHead": "97a5523bac4570ba7b47fbfdbb22348f38246d11"
40
40
  }