Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@tirrilee/admin-bro-firebase
Advanced tools
Error fixed from JonaszJestem/admin-bro-firebase
Adapter for AdminBro which allows to add your own Firebase resources
You will need AdminBro panel configured for your project. See AdminBro Repository for instructions
You have to initialize your Firebase app before connecting resources to AdminBro. That means you have to write something like:
// Your firebase config see https://firebase.google.com/docs/web/setup
export const firebaseConfig = {
// [...]
};
Firebase.initializeApp(firebaseConfig);
To connect adapter to your AdminBro instance all you need is to:
Check example
folder for full example application!
import * as firebase from "firebase";
import AdminBroExpress from 'admin-bro-expressjs';
import AdminBroFirebase from '@tirrilee/admin-bro-firebase';
import AdminBro from 'admin-bro';
const setupAdmin = async expressApp => {
AdminBro.registerAdapter(AdminBroFirebase);
const adminBro = new AdminBro({
branding: {
companyName: 'Firebase example',
},
resources: [
{
collection: firebase.firestore().collection('Users'),
schema: {
name: 'string',
isAdmin: 'boolean',
location: 'mixed',
attributes: {
type: 'mixed',
schema: {
birthdate: 'date',
height: 'number',
eyeColors: 'mixed',
},
},
},
},
],
});
const router = await AdminBroExpress.buildRouter(adminBro);
app.use(adminBro.options.rootPath, router);
};
Described in Issues tab.
Feel free to contribute.
This project is licensed under the MIT License
FAQs
Firebase adapter for admin-bro
We found that @tirrilee/admin-bro-firebase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.