adding bunch of stuff for user getting

This commit is contained in:
Arjun Patel
2022-01-13 22:33:05 -08:00
parent 9f5b3d072a
commit 4e4bc2bcc9
11 changed files with 2202 additions and 51 deletions
+11 -3
View File
@@ -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)