@react-native-firebase/auth 13.0.1 → 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,28 @@
|
|
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
|
+
|
12
|
+
# [14.0.0](https://github.com/invertase/react-native-firebase/compare/v13.1.1...v14.0.0) (2021-12-14)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/auth
|
15
|
+
|
16
|
+
## [13.1.1](https://github.com/invertase/react-native-firebase/compare/v13.1.0...v13.1.1) (2021-12-14)
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
- **deps:** AGP7.0.4, firebase-android-sdk 29.0.2, javascript deps ([55d0a36](https://github.com/invertase/react-native-firebase/commit/55d0a36a0addc54e347f26bb8ee88bb38b0fa4a6))
|
21
|
+
|
22
|
+
# [13.1.0](https://github.com/invertase/react-native-firebase/compare/v13.0.1...v13.1.0) (2021-12-02)
|
23
|
+
|
24
|
+
### Features
|
25
|
+
|
26
|
+
- **android, emulator:** add firebase.json config element to bypass localhost remap ([#5852](https://github.com/invertase/react-native-firebase/issues/5852)) ([ddf3f5f](https://github.com/invertase/react-native-firebase/commit/ddf3f5f43d2c8547879934c3169d3e01c0db44c0))
|
27
|
+
|
6
28
|
## [13.0.1](https://github.com/invertase/react-native-firebase/compare/v13.0.0...v13.0.1) (2021-11-05)
|
7
29
|
|
8
30
|
**Note:** Version bump only for package @react-native-firebase/auth
|
package/android/build.gradle
CHANGED
@@ -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/index.js
CHANGED
@@ -360,19 +360,22 @@ class FirebaseAuthModule extends FirebaseModule {
|
|
360
360
|
}
|
361
361
|
|
362
362
|
let _url = url;
|
363
|
-
|
363
|
+
const androidBypassEmulatorUrlRemap =
|
364
|
+
typeof this.firebaseJson.android_bypass_emulator_url_remap === 'boolean' &&
|
365
|
+
this.firebaseJson.android_bypass_emulator_url_remap;
|
366
|
+
if (!androidBypassEmulatorUrlRemap && isAndroid && _url) {
|
364
367
|
if (_url.startsWith('http://localhost')) {
|
365
368
|
_url = _url.replace('http://localhost', 'http://10.0.2.2');
|
366
369
|
// eslint-disable-next-line no-console
|
367
370
|
console.log(
|
368
|
-
'Mapping auth host "localhost" to "10.0.2.2" for android emulators. Use real IP on real devices.',
|
371
|
+
'Mapping auth host "localhost" to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.',
|
369
372
|
);
|
370
373
|
}
|
371
374
|
if (_url.startsWith('http://127.0.0.1')) {
|
372
375
|
_url = _url.replace('http://127.0.0.1', 'http://10.0.2.2');
|
373
376
|
// eslint-disable-next-line no-console
|
374
377
|
console.log(
|
375
|
-
'Mapping auth host "127.0.0.1" to "10.0.2.2" for android emulators. Use real IP on real devices.',
|
378
|
+
'Mapping auth host "127.0.0.1" to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.',
|
376
379
|
);
|
377
380
|
}
|
378
381
|
}
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// generated by genversion
|
2
|
-
module.exports = '
|
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": "
|
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": "
|
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
|
}
|