Skip to content

Instantly share code, notes, and snippets.

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