Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@firebase/app-check-compat
Advanced tools
A compat App Check package for new firebase packages
The @firebase/app-check-compat package is designed to work with Firebase App Check in a way that is compatible with the older Firebase JavaScript SDKs. It helps in protecting your Firebase resources from abuse, such as billing fraud or phishing, by ensuring that only your apps can access your Firebase services.
Initialize App Check with reCAPTCHA
This code initializes Firebase App Check using a reCAPTCHA provider. It helps in ensuring that the client interacting with your Firebase services is a legitimate instance of your app, by solving a CAPTCHA challenge.
import firebase from 'firebase/app';
import 'firebase/app-check';
// Initialize Firebase app
firebase.initializeApp({
apiKey: 'your-api-key',
authDomain: 'your-auth-domain',
// other config
});
// Initialize App Check with reCAPTCHA provider
const appCheck = firebase.appCheck();
appCheck.activate('your-recaptcha-public-key', true);
Integrate with Firebase services
This code demonstrates how Firebase services like Authentication and Firestore can be used normally after integrating App Check. App Check works in the background to secure these requests.
import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/firestore';
// Assuming App Check and Firebase app have been initialized
// Use Firebase services as usual
firebase.auth().onAuthStateChanged(user => {
console.log(user);
});
firebase.firestore().collection('users').get().then(snapshot => {
snapshot.forEach(doc => console.log(doc.data()));
});
This is the standard version of Firebase App Check designed for use with the modern Firebase JavaScript SDK (v9+). It offers similar functionalities but with a modular approach, promoting better tree-shaking and potentially smaller bundle sizes compared to @firebase/app-check-compat.
While not a direct alternative, recaptcha-v3 is a package that provides Google reCAPTCHA v3 services which can be used for similar purposes of protecting web apps from abuse. However, it does not integrate directly with Firebase services.
This is the Firebase App Check component (compat version) of the Firebase JS SDK.
This package is not intended for direct usage, and should only be used via the officially supported firebase
package.
FAQs
A compat App Check package for new firebase packages
The npm package @firebase/app-check-compat receives a total of 1,494,741 weekly downloads. As such, @firebase/app-check-compat popularity was classified as popular.
We found that @firebase/app-check-compat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.