Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created May 30, 2021 18:27
Slack clone firebase file
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