Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.