Discover how to set up Firebase App Check for stronger security, protecting your app from abuse and ensuring only real users access your Firebase services.
Firebase App Check boosts the security of your Firebase app by making sure only your app taps into backend resources. To get started, set up your app's credentials, bring in the App Check SDK, and tweak your backend to verify the App Check tokens. You'll choose an attestation provider such as reCAPTCHA, SafetyNet, or DeviceCheck. After that, add the required dependencies, get App Check up and running in your client app, then update Firebase services to enforce the App Check verification.
Head over to the Firebase Console Firebase Console.
In the Firebase Console, pick the project you want to enable App Check for.
On the left sidebar, find and click the "App Check" tab under the “Build” section.
Click “Get Started” if you see it. Then, select the app you want to protect from the list (e.g., Android, iOS, Web).
Pick the App Check provider. For example:
Follow the instructions based on your provider:
Add the App Check SDK to your app’s code. Here’s an example for a web app:
// Import the App Check package
import { initializeAppCheck, ReCaptchaV3Provider } from "firebase/app-check";
// Initialize App Check
const appCheck = initializeAppCheck(firebaseApp, {
provider: new ReCaptchaV3Provider('YOUR_RECAPTCHA_KEY'),
isTokenAutoRefreshEnabled: true // Optionally enable automatic token refresh
});
Don’t forget to replace ‘YOUR_RECAPTCHA_KEY’ with your actual key.
Go back to the Firebase Console and return to the App Check configuration page. Turn on enforcement mode for each service you want to protect, like Firestore, Realtime Database, or Cloud Functions.
Test your app to make sure it works fine with App Check enabled. If everything looks good, go ahead and deploy your app.
After deploying, use the Firebase Console to keep an eye on App Check metrics. Make sure your app isn’t getting too many rejections, which could mean there’s an issue with real users.
Explore our Firebase tutorials directory - an essential resource for learning how to create, deploy and manage robust server-side applications with ease and efficiency.
Nocode tools allow us to develop and deploy your new application 40-60% faster than regular app development methods.
Save time, money, and energy with an optimized hiring process. Access a pool of experts who are sourced, vetted, and matched to meet your precise requirements.
With the Bootstrapped platform, managing projects and developers has never been easier.
Bootstrapped offers a comprehensive suite of capabilities tailored for startups. Our expertise spans web and mobile app development, utilizing the latest technologies to ensure high performance and scalability. The team excels in creating intuitive user interfaces and seamless user experiences. We employ agile methodologies for flexible and efficient project management, ensuring timely delivery and adaptability to changing requirements. Additionally, Bootstrapped provides continuous support and maintenance, helping startups grow and evolve their digital products. Our services are designed to be affordable and high-quality, making them an ideal partner for new ventures.
Fast Development: Bootstrapped specializes in helping startup founders build web and mobile apps quickly, ensuring a fast go-to-market strategy.
Tailored Solutions: The company offers customized app development, adapting to specific business needs and goals, which ensures your app stands out in the competitive market.
Expert Team: With a team of experienced developers and designers, Bootstrapped ensures high-quality, reliable, and scalable app solutions.
Affordable Pricing: Ideal for startups, Bootstrapped offers cost-effective development services without compromising on quality.
Supportive Partnership: Beyond development, Bootstrapped provides ongoing support and consultation, fostering long-term success for your startup.
Agile Methodology: Utilizing agile development practices, Bootstrapped ensures flexibility, iterative progress, and swift adaptation to changes, enhancing project success.