@react-native-firebase/auth 13.1.1 → 14.2.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
+ # [14.2.0](https://github.com/invertase/react-native-firebase/compare/v14.1.0...v14.2.0) (2021-12-31)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/auth
9
+
10
+ # [14.1.0](https://github.com/invertase/react-native-firebase/compare/v14.0.1...v14.1.0) (2021-12-18)
11
+
12
+ **Note:** Version bump only for package @react-native-firebase/auth
13
+
14
+ ## [14.0.1](https://github.com/invertase/react-native-firebase/compare/v14.0.0...v14.0.1) (2021-12-15)
15
+
16
+ ### Bug Fixes
17
+
18
+ - **auth, phone:** call verifyPhoneNumber callbacks correctly ([7c082be](https://github.com/invertase/react-native-firebase/commit/7c082bedd58a868ddcd44c1d2b6d1900e43b012c))
19
+
20
+ # [14.0.0](https://github.com/invertase/react-native-firebase/compare/v13.1.1...v14.0.0) (2021-12-14)
21
+
22
+ **Note:** Version bump only for package @react-native-firebase/auth
23
+
6
24
  ## [13.1.1](https://github.com/invertase/react-native-firebase/compare/v13.1.0...v13.1.1) (2021-12-14)
7
25
 
8
26
  ### Bug Fixes
@@ -958,12 +958,12 @@ class ReactNativeFirebaseAuthModule extends ReactNativeFirebaseModule {
958
958
  final String requestKey,
959
959
  final int timeout,
960
960
  final boolean forceResend) {
961
+ Log.d(TAG, "verifyPhoneNumber:" + phoneNumber);
962
+
961
963
  FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
962
964
  final FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp);
963
965
  final Activity activity = getCurrentActivity();
964
966
 
965
- Log.d(TAG, "verifyPhoneNumber:" + phoneNumber);
966
-
967
967
  // reset force resending token if phone number changes
968
968
  if (!phoneNumber.equals(mLastPhoneNumber)) {
969
969
  mForceResendingToken = null;
@@ -206,16 +206,16 @@ export default class PhoneAuthListener {
206
206
  this._addUserObserver(observer);
207
207
 
208
208
  if (isFunction(errorCb)) {
209
- const subscription = this._auth.emitter.addListener(this._publicEvents.error, () => {
210
- errorCb;
209
+ const subscription = this._auth.emitter.addListener(this._publicEvents.error, event => {
211
210
  subscription.remove();
211
+ errorCb(event);
212
212
  });
213
213
  }
214
214
 
215
215
  if (isFunction(successCb)) {
216
- const subscription = this._auth.emitter.addListener(this._publicEvents.success, () => {
217
- successCb;
216
+ const subscription = this._auth.emitter.addListener(this._publicEvents.success, event => {
218
217
  subscription.remove();
218
+ successCb(event);
219
219
  });
220
220
  }
221
221
 
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '13.1.1';
2
+ module.exports = '14.2.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "13.1.1",
3
+ "version": "14.2.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": "13.1.1"
25
+ "@react-native-firebase/app": "14.2.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "049886ae1dd36ca7b472238f649a6653ec2183f0"
30
+ "gitHead": "4557fbd914b3496e166318affa95ec4222515e9e"
31
31
  }