dentvega/firebase-agent-skills/firebase-app-check
Claude Code and agent skill by dentvega/firebase-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Protects Firebase backends from abuse by attesting that requests come from your real app — Play Integrity (Android), App Attest / DeviceCheck (iOS), reCAPTCHA Enterprise (web). Use whenever the user wants to prevent scraping, quota theft, or unauthorized API access to Firestore, Storage, Cloud Functions, or Realtime Database.
Install
npx vskill@latest install dentvega/firebase-agent-skills/firebase-app-checkSKILL.md
The same SKILL.md was published earlier as dentvega/firebase-agent-skills/firebase-app-check.
Firebase App Check
App Check verifies that incoming traffic to your Firebase services comes from your authentic, unmodified app — not a script, scraper, or repackaged binary. Without it, anyone with your Firebase web config (which ships in your client bundle) can hit your APIs.
Minimum viable example
Must run before any other Firebase call (auth, Firestore, etc). Then flip enforcement on per product in the Firebase Console — but monitor unverified traffic for a week first.
1. Register attestation providers
In Firebase Console → App Check → register each app:
| Platform | Provider | Setup | |
|---|---|---|---|
| iOS | App Attest (iOS 14+) | Automatic — just enable. Falls back to DeviceCheck on iOS < 14. | |
| Android | Play Integrity | Requires the app's SHA-256 fingerprint in Firebase Console. | |
| Web | reCAPTCHA Enterprise | Create a key in Google Cloud Console, paste site key into Firebase Console. |
For Android: eas credentials shows your SHA-256 — paste into Firebase Console → Project Settings → your Android app → Add fingerprint, then App Check picks it up automatically.
2. Install client (Expo / RN)
app.json:
Initialize early, before any other Firebase call:
3. Web setup
For local dev, set a debug token on the window before init:
Copy the token from the browser console → Firebase Console → App Check → your app → Manage debug tokens.
4. Enforcement (the important step)
Registering App Check does nothing on its own. You must explicitly enforce it per product in the Firebase Console:
- Cloud Firestore: App Check → Firestore → Enforce
- Cloud Storage: App Check → Storage → Enforce
- Realtime Database: App Check → RTDB → Enforce
- Cloud Functions: per-function in code (see below)
CRITICAL: before enforcing on a live product, monitor the Unverified Requests panel for at least a week to confirm 100% of legitimate traffic is sending valid tokens. Enforcing prematurely blocks real users.
Enforcing on a callable Cloud Function
request.app is the verified App Check token. With enforceAppCheck: true the function rejects unverified requests before your handler runs.
5. Debug tokens
For simulators, emulators, and CI, you cannot generate real attestation tokens. Set a debug token:
- Run the app once — it prints a debug token to the console
- Firebase Console → App Check → your app → Manage debug tokens → Add
- Paste the token, give it a name (e.g. "iOS Simulator")
Debug tokens look like real tokens to Firebase; rotate or delete them when team members leave. They bypass attestation.
For full debug token playbook (CI, team rotation, leak detection) see references/debug-tokens.md.
6. Common mistakes
- Enforcing without monitoring first. Blocks every user who hasn't received an updated client with App Check wired. Always monitor unverified traffic for at least a week before flipping enforcement.
- Initializing App Check after Firestore/Auth. Order matters — App Check must be initialized first so subsequent calls attach the token.
- Forgetting Android SHA-256 fingerprints. Play Integrity fails silently if Firebase doesn't know your app signature. Add fingerprints for both debug and release certs.
- Shipping `__DEV__` debug providers to production. Always confirm
__DEV__isfalsein release builds — the bundler should strip the dev branch automatically, but verify by checking the bundle. - Treating App Check as authentication. It's attestation — it proves the app is legit, not who is using it. Pair with Firebase Auth for user identity.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/firebase-app-check/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dentvega/firebase-agent-skills/firebase-app-check)