Created
October 7, 2022 13:22
-
-
Save hieptlccc/c4248a27d0b76f6de6b510dc00e056c0 to your computer and use it in GitHub Desktop.
Facebook Clone React - firebase.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from "firebase/app"; | |
import 'firebase/firestore'; | |
import 'firebase/auth'; | |
import { firebaseConfig } from "./app.config" | |
const firebaseApp = firebase.initializeApp(firebaseConfig); | |
const db = firebaseApp.firestore(); | |
const auth = firebase.auth(); | |
const provider = new firebase.auth.GoogleAuthProvider(); | |
export { auth, provider }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment