Skip to content

Commit 208c7c0

Browse files
committed
add App check missing point
1 parent 5ba3da7 commit 208c7c0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

content/blog/How-to-setup-firebase-app-check.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ Firebase App Check uses a token-based approach to verify that requests originate
5555
let providerFactory = AppCheckDebugProviderFactory()
5656
AppCheck.setAppCheckProviderFactory(providerFactory)
5757
#else
58-
AppCheck.setAppCheckProviderFactory(CapCapAppCheckProviderFactory())
58+
AppCheck.setAppCheckProviderFactory(YourAppCheckProviderFactory())
5959
#endif
6060
}
6161
```
62-
5. Now you can use token to send to your firebase functions.
62+
5. Enable `App Attest` capability in the Xcode project from Signing & Capabilities.
63+
6. Now you can use token to send to your firebase functions.
6364
- Step 1: create header in your firebase function to send the token.
6465
- header name: `x-firebase-appcheck`
6566
- Step 2: send the token in your firebase function.
@@ -92,7 +93,7 @@ Firebase App Check uses a token-based approach to verify that requests originate
9293
}
9394
}
9495
```
95-
6. During development, you will have to register your debug token in the firebase console.
96+
7. During development, you will have to register your debug token in the firebase console.
9697
- Step 1: In Xcode enable firebase debug mode. [Firebase DebugView](https://firebase.google.com/docs/analytics/debugview)
9798
- Step 2: Search for `Firebase App Check` in the logs.
9899
- Step 3: Copy the token from the logs.

0 commit comments

Comments
 (0)