Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@adminjs/firebase
Advanced tools
Adapter for AdminJS which allows to add your own Firebase resources
You will need AdminJS panel configured for your project. See AdminJS Repository for instructions
You have to initialize your Firebase app before connecting resources to AdminJS. 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 AdminJS instance all you need is to:
Check example
folder for full example application!
import * as firebase from "firebase";
import AdminJSExpress from '@adminjs/express';
import AdminJSFirebase from '@adminjs/firebase';
import AdminJS from 'adminjs';
const setupAdmin = async expressApp => {
AdminJS.registerAdapter(AdminJSFirebase);
const adminJs = new AdminJS({
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 AdminJSExpress.buildRouter(adminJs);
app.use(adminJs.options.rootPath, router);
};
Described in Issues tab.
Feel free to contribute.
This project is licensed under the MIT License
FAQs
Firebase adapter for AdminJS
We found that @adminjs/firebase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.