Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@firebase/installations
Advanced tools
The @firebase/installations npm package is part of the Firebase SDK and is responsible for managing unique identifiers for Firebase installations. It provides APIs to generate and manage these identifiers, which are crucial for the proper functioning of other Firebase services such as Firebase Cloud Messaging (FCM) and Firebase Remote Config.
Generate a unique identifier for a Firebase installation
This feature allows the generation of a unique identifier for each Firebase installation. This ID is used internally by Firebase services to target specific installations.
import { getInstallations, getId } from '@firebase/installations';
const installations = getInstallations();
getId(installations).then(id => console.log('Firebase Installation ID:', id));
Delete an installation
This feature provides the functionality to delete a Firebase installation. This might be used when cleaning up data or when a user logs out and you want to ensure their installation data is reset.
import { getInstallations, deleteInstallation } from '@firebase/installations';
const installations = getInstallations();
deleteInstallation(installations).then(() => console.log('Installation deleted'));
While firebase-admin is primarily used for server-side interactions with Firebase, it also manages Firebase installations in a broader administrative context. Unlike @firebase/installations, which is client-focused, firebase-admin provides a more comprehensive set of tools for Firebase management, including user authentication, database interactions, and more.
This package is a popular choice for React Native developers integrating Firebase into their mobile applications. It includes functionality similar to @firebase/installations for managing Firebase installations within the broader context of a React Native app. It differs in that it is tailored specifically for React Native environments, providing hooks and components that integrate seamlessly with React Native's development model.
FAQs
Unknown package
The npm package @firebase/installations receives a total of 1,682,762 weekly downloads. As such, @firebase/installations popularity was classified as popular.
We found that @firebase/installations 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.