Installation

Config/firebase.js

// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from "firebase/firestore";

const firebaseConfig = {
	apiKey: "xxx",
	authDomain: "xxx",
	projectId: "xxx",
	storageBucket: "xxx",
	messagingSenderId: "xxx",
	appId: "xxx",
	measurementId: "xxx"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const auth = getAuth();
const db = getFirestore(app);

export { auth, db, app };

Last updated

Was this helpful?