RC-4: create firebaseService

This commit is contained in:
2023-06-22 19:57:36 +01:00
parent 578aaf1ab6
commit ae8294841c

View File

@@ -0,0 +1,15 @@
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getDatabase } from 'firebase/database';
import { getStorage } from 'firebase/storage';
export default class FirebaseService {
#app;
constructor(config) {
this.app = initializeApp(config);
this.auth = getAuth(this.app);
this.db = getDatabase(this.app);
this.storage = getStorage(this.app);
}
}