Enabling Google Firestore from Firebase
This commit is contained in:
parent
10dc5673eb
commit
487818c61a
|
@ -7,6 +7,7 @@ import { getAuth,
|
||||||
onAuthStateChanged,
|
onAuthStateChanged,
|
||||||
signOut,
|
signOut,
|
||||||
signInWithEmailAndPassword } from "firebase/auth";
|
signInWithEmailAndPassword } from "firebase/auth";
|
||||||
|
import { getFirestore } from "firebase/firestore";
|
||||||
|
|
||||||
import { Header } from "./components/Header"
|
import { Header } from "./components/Header"
|
||||||
import './App.css'
|
import './App.css'
|
||||||
|
@ -25,6 +26,7 @@ import { AuthContext } from "./contexts/AuthContext"
|
||||||
function App() {
|
function App() {
|
||||||
const FBapp = initializeApp(FirebaseConfig)
|
const FBapp = initializeApp(FirebaseConfig)
|
||||||
const FBauth = getAuth()
|
const FBauth = getAuth()
|
||||||
|
const FBdb = getFirestore()
|
||||||
|
|
||||||
|
|
||||||
// navigation array
|
// navigation array
|
||||||
|
|
Loading…
Reference in New Issue