Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example using firebase-admin in SK
import admin from "firebase-admin";
if (!admin.apps.length) {
credential: admin.credential.applicationDefault(),
databaseURL: 'your-url' // ...
const firebase = admin;
const firestore = admin.firestore();
const auth = admin.auth();
const storage =;
export { firebase, firestore, auth, storage };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment