13 lines
380 B
TypeScript
13 lines
380 B
TypeScript
import { initializeApp, getApps } from "firebase-admin/app";
|
|
import { getAuth } from "firebase-admin/auth";
|
|
import { getFirestore } from "firebase-admin/firestore";
|
|
import { getDatabase } from "firebase-admin/database";
|
|
|
|
if (getApps().length === 0) {
|
|
initializeApp();
|
|
}
|
|
|
|
export const auth = getAuth();
|
|
export const firestore = getFirestore();
|
|
export const rtdb = getDatabase();
|