@react-native-firebase/auth 14.3.3 → 14.4.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,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.4.0](https://github.com/invertase/react-native-firebase/compare/v14.3.3...v14.4.0) (2022-02-13)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- **auth, android:** implement disable app verification feature on android ([#6069](https://github.com/invertase/react-native-firebase/issues/6069)) ([48c7842](https://github.com/invertase/react-native-firebase/commit/48c7842124f901aeda991da3122016fd3fb42e03))
|
11
|
+
|
6
12
|
## [14.3.3](https://github.com/invertase/react-native-firebase/compare/v14.3.2...v14.3.3) (2022-02-12)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package @react-native-firebase/auth
|
@@ -243,6 +243,23 @@ class ReactNativeFirebaseAuthModule extends ReactNativeFirebaseModule {
|
|
243
243
|
promise.resolve(null);
|
244
244
|
}
|
245
245
|
|
246
|
+
/**
|
247
|
+
* Disable app verification for the running of tests
|
248
|
+
* @param appName
|
249
|
+
* @param disabled
|
250
|
+
* @param promise
|
251
|
+
*/
|
252
|
+
@ReactMethod
|
253
|
+
public void setAppVerificationDisabledForTesting(
|
254
|
+
String appName, boolean disabled, Promise promise) {
|
255
|
+
Log.d(TAG, "setAppVerificationDisabledForTesting");
|
256
|
+
FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
|
257
|
+
FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp);
|
258
|
+
FirebaseAuthSettings firebaseAuthSettings = firebaseAuth.getFirebaseAuthSettings();
|
259
|
+
firebaseAuthSettings.setAppVerificationDisabledForTesting(disabled);
|
260
|
+
promise.resolve(null);
|
261
|
+
}
|
262
|
+
|
246
263
|
@ReactMethod
|
247
264
|
public void signOut(String appName, Promise promise) {
|
248
265
|
FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);
|
package/lib/Settings.js
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
*
|
16
16
|
*/
|
17
17
|
|
18
|
-
import { isAndroid
|
18
|
+
import { isAndroid } from '@react-native-firebase/app/lib/common';
|
19
19
|
|
20
20
|
export default class Settings {
|
21
21
|
constructor(auth) {
|
@@ -28,10 +28,8 @@ export default class Settings {
|
|
28
28
|
}
|
29
29
|
|
30
30
|
set appVerificationDisabledForTesting(disabled) {
|
31
|
-
|
32
|
-
|
33
|
-
this._auth.native.setAppVerificationDisabledForTesting(disabled);
|
34
|
-
}
|
31
|
+
this._appVerificationDisabledForTesting = disabled;
|
32
|
+
this._auth.native.setAppVerificationDisabledForTesting(disabled);
|
35
33
|
}
|
36
34
|
|
37
35
|
setAutoRetrievedSmsCodeForPhoneNumber(phoneNumber, smsCode) {
|
package/lib/index.d.ts
CHANGED
@@ -826,11 +826,10 @@ export namespace FirebaseAuthTypes {
|
|
826
826
|
*/
|
827
827
|
export interface AuthSettings {
|
828
828
|
/**
|
829
|
-
*
|
829
|
+
* Flag to disable app verification for the purpose of testing phone authentication. For this property to take effect, it needs to be set before rendering a reCAPTCHA app verifier. When this is disabled, a mock reCAPTCHA is rendered instead. This is useful for manual testing during development or for automated integration tests.
|
830
830
|
*
|
831
831
|
* > In order to use this feature, you will need to [whitelist your phone number](https://firebase.google.com/docs/auth/web/phone-auth#test-with-whitelisted-phone-numbers) via the Firebase Console.
|
832
832
|
*
|
833
|
-
* @ios
|
834
833
|
* @param disabled Boolean value representing whether app verification should be disabled for testing.
|
835
834
|
*/
|
836
835
|
appVerificationDisabledForTesting: boolean;
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// generated by genversion
|
2
|
-
module.exports = '14.
|
2
|
+
module.exports = '14.4.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/auth",
|
3
|
-
"version": "14.
|
3
|
+
"version": "14.4.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": "14.
|
25
|
+
"@react-native-firebase/app": "14.4.0"
|
26
26
|
},
|
27
27
|
"publishConfig": {
|
28
28
|
"access": "public"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "a21797813bdac784232b0275f112d7f1524eb222"
|
31
31
|
}
|