/firebase.js Secret
Created
May 30, 2021 18:27
Slack clone firebase file
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 = firebaseApp.auth() | |
const provider = new firebase.auth.GoogleAuthProvider() | |
export { auth, provider } | |
export default db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment