1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-21 16:36:06 +02:00

update firebase to 10

This commit is contained in:
Kushagra Gour
2024-02-20 12:55:36 +05:30
parent 24cdf7ef7c
commit 2ea0090564
8 changed files with 3154 additions and 688 deletions

View File

@@ -1,5 +1,7 @@
import firebase from 'firebase/app';
// import 'firebase/firestore';
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
const config = {
apiKey: 'AIzaSyBl8Dz7ZOE7aP75mipYl2zKdLSRzBU2fFc',
authDomain: 'web-maker-app.firebaseapp.com',
@@ -8,4 +10,9 @@ const config = {
storageBucket: 'web-maker-app.appspot.com',
messagingSenderId: '560473480645'
};
firebase.initializeApp(config);
const app = initializeApp(config);
export { app };
export const auth = getAuth(app);
export const db = getFirestore(app);