@react-native-firebase/auth 12.7.2 → 12.8.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,24 @@
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
+ # [12.8.0](https://github.com/invertase/react-native-firebase/compare/v12.7.5...v12.8.0) (2021-09-14)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/auth
9
+
10
+ ## [12.7.5](https://github.com/invertase/react-native-firebase/compare/v12.7.4...v12.7.5) (2021-09-04)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **auth, android:** linkWithCredential will not attempt to upgrade from anon user (matches iOS) ([#5694](https://github.com/invertase/react-native-firebase/issues/5694)) ([7cd1716](https://github.com/invertase/react-native-firebase/commit/7cd1716c0adef0f390b34409e737ac14da8120a8)), closes [#4487](https://github.com/invertase/react-native-firebase/issues/4487) [#4552](https://github.com/invertase/react-native-firebase/issues/4552)
15
+
16
+ ## [12.7.4](https://github.com/invertase/react-native-firebase/compare/v12.7.3...v12.7.4) (2021-08-31)
17
+
18
+ **Note:** Version bump only for package @react-native-firebase/auth
19
+
20
+ ## [12.7.3](https://github.com/invertase/react-native-firebase/compare/v12.7.2...v12.7.3) (2021-08-24)
21
+
22
+ **Note:** Version bump only for package @react-native-firebase/auth
23
+
6
24
  ## [12.7.2](https://github.com/invertase/react-native-firebase/compare/v12.7.1...v12.7.2) (2021-08-21)
7
25
 
8
26
  **Note:** Version bump only for package @react-native-firebase/auth
@@ -56,7 +56,7 @@ describe('Auth', function () {
56
56
  try {
57
57
  await firebase.app().auth().setTenantId(Object());
58
58
  return Promise.reject('It should throw an error');
59
- } catch (e) {
59
+ } catch (e: any) {
60
60
  expect(e.message).toBe("firebase.auth().setTenantId(*) expected 'tenantId' to be a string");
61
61
  return Promise.resolve('Error catched');
62
62
  }
@@ -1214,30 +1214,7 @@ class ReactNativeFirebaseAuthModule extends ReactNativeFirebaseModule {
1214
1214
  } else {
1215
1215
  Exception exception = task.getException();
1216
1216
  Log.e(TAG, "link:onComplete:failure", exception);
1217
- if (exception instanceof FirebaseAuthUserCollisionException) {
1218
- FirebaseAuthUserCollisionException authUserCollisionException =
1219
- (FirebaseAuthUserCollisionException) exception;
1220
- AuthCredential updatedCredential =
1221
- authUserCollisionException.getUpdatedCredential();
1222
- try {
1223
- firebaseAuth
1224
- .signInWithCredential(updatedCredential)
1225
- .addOnCompleteListener(
1226
- getExecutor(),
1227
- result -> {
1228
- if (result.isSuccessful()) {
1229
- promiseWithAuthResult(result.getResult(), promise);
1230
- } else {
1231
- promiseRejectAuthException(promise, exception);
1232
- }
1233
- });
1234
- } catch (Exception e) {
1235
- // we the attempt to log in after the collision failed, reject back to JS
1236
- promiseRejectAuthException(promise, exception);
1237
- }
1238
- } else {
1239
- promiseRejectAuthException(promise, exception);
1240
- }
1217
+ promiseRejectAuthException(promise, exception);
1241
1218
  }
1242
1219
  });
1243
1220
  } else {
package/lib/index.d.ts CHANGED
@@ -1295,6 +1295,7 @@ export namespace FirebaseAuthTypes {
1295
1295
 
1296
1296
  /**
1297
1297
  * Listen for changes in ID token.
1298
+ * ID token can be verified (if desired) using the [admin SDK or a 3rd party JWT library](https://firebase.google.com/docs/auth/admin/verify-id-tokens)
1298
1299
  * This method returns a unsubscribe function to stop listening to events.
1299
1300
  * Always ensure you unsubscribe from the listener when no longer needed to prevent updates to components no longer in use.
1300
1301
  *
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '12.7.2';
2
+ module.exports = '12.8.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "12.7.2",
3
+ "version": "12.8.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",
@@ -22,10 +22,10 @@
22
22
  "auth"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "12.7.2"
25
+ "@react-native-firebase/app": "12.8.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "73208c84a0130f1ac1cf4bb6987eb0292ebd68ce"
30
+ "gitHead": "79918977979e099721da634157ec18cb9699e746"
31
31
  }