Enabling Google Firestore from Firebase

This commit is contained in:
Ray 2023-10-10 09:57:56 +00:00 committed by GitHub
parent 10dc5673eb
commit 487818c61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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