You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional modifications to AppDelegate.mm are required in order to load the RNFBAppCheckModule. Without initializing the AppCheckModule before calling [FIRApp configure], the setup of a custom provider will fail.
// Initialize RNFBAppCheckModule, it sets the custom RNFBAppCheckProviderFactory
101
+
// which lets us configure any of the available native platform providers,
102
+
// and reconfigure if needed, dynamically after `[FIRApp configure]` just like the other platforms.
103
+
104
+
[RNFBAppCheckModule sharedInstance]; // ⬅️ ADD THIS LINE BEFORE [FIRApp configure]
105
+
106
+
[FIRApp configure];
107
+
108
+
...
109
+
}
110
+
111
+
```
112
+
90
113
There are several differences between the web, Apple, and Android platform SDKs produced by Firebase, which react-native-firebase smooths over to give you a common, firebase-js-sdk compatible API.
91
114
92
115
How do we do this? We use the standard firebase-js-sdk v9 API `initializeAppCheck`, and take advantage of its parameters which allow the use of an `AppCheckOptions` argument that itself allows a `CustomProvider`.
@@ -125,6 +148,22 @@ Once you have the custom provider configured, install it in app-check using the
App Check has an "tokenAutoRefreshEnabled" setting. This may cause App Check to attempt a remote App Check token fetch prior to user consent. In certain scenarios, like those that exist in GDPR-compliant apps running for the first time, this may be unwanted.
0 commit comments