adding bunch of stuff for user getting
This commit is contained in:
@@ -11,8 +11,11 @@
|
||||
|
||||
|
||||
// Import the functions you need from the SDKs you need
|
||||
import { initializeApp } from "firebase/app";
|
||||
import * as firebase from 'firebase/app';
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
import { getFirestore } from "firebase/firestore";
|
||||
import { browserSessionPersistence, getAuth, setPersistence } from 'firebase/auth';
|
||||
|
||||
// TODO: Add SDKs for Firebase products that you want to use
|
||||
// https://firebase.google.com/docs/web/setup#available-libraries
|
||||
|
||||
@@ -29,5 +32,10 @@ const firebaseConfig = {
|
||||
};
|
||||
|
||||
// Initialize Firebase
|
||||
const app = initializeApp(firebaseConfig);
|
||||
const analytics = getAnalytics(app);
|
||||
const app = firebase.initializeApp(firebaseConfig);
|
||||
const analytics = getAnalytics(app);
|
||||
|
||||
console.log('initialized firebase')
|
||||
|
||||
setPersistence(getAuth(), browserSessionPersistence)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user