16 lines
413 B
JavaScript
16 lines
413 B
JavaScript
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);
|
|
}
|
|
}
|