@react-native-firebase/auth 14.0.0 → 14.0.1
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
|
+
## [14.0.1](https://github.com/invertase/react-native-firebase/compare/v14.0.0...v14.0.1) (2021-12-15)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **auth, phone:** call verifyPhoneNumber callbacks correctly ([7c082be](https://github.com/invertase/react-native-firebase/commit/7c082bedd58a868ddcd44c1d2b6d1900e43b012c))
|
11
|
+
|
6
12
|
# [14.0.0](https://github.com/invertase/react-native-firebase/compare/v13.1.1...v14.0.0) (2021-12-14)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package @react-native-firebase/auth
|
@@ -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;
|
package/lib/PhoneAuthListener.js
CHANGED
@@ -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 = '14.0.
|
2
|
+
module.exports = '14.0.1';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/auth",
|
3
|
-
"version": "14.0.
|
3
|
+
"version": "14.0.1",
|
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": "14.0.
|
25
|
+
"@react-native-firebase/app": "14.0.1"
|
26
26
|
},
|
27
27
|
"publishConfig": {
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "c2f5b82e487ba3c05e10ccafaa8cc09b43cb5811"
|
31
31
|
}
|