Skip to content

Commit cbd1216

Browse files
docs(app-check): update initializeApp example to include proper params (#8426)
* Update index.md * Apply suggestions from code review --------- Co-authored-by: Mike Hardy <github@mikehardy.net>
1 parent df65f5c commit cbd1216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/app-check/usage/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@ rnfbProvider.configure({
173173
Once you have the custom provider configured, install it in app-check using the firebase-js-sdk compatible API, while saving the returned instance for usage:
174174

175175
```javascript
176+
import { getApp } from `@react-native-firebase/app`;
176177
import { initializeAppCheck } from `@react-native-firebase/app-check`;
177178

178-
const appCheck = initializeAppCheck({ provider: rnfbProvider, isTokenAutoRefreshEnabled: true });
179+
const appCheck = initializeAppCheck(getApp(), { provider: rnfbProvider, isTokenAutoRefreshEnabled: true });
179180
```
180181

181182
### Verify AppCheck was initialized correctly

0 commit comments

Comments
 (0)