Answers for "firebase config initialize"

1

firebase config initialize

import firebase from 'firebase';

const firebaseConfig = {
	// config file from firebase
};

const firebaseApp = firebase.initializeApp(firebaseConfig);

// for database
const db = firebaseApp.firestore();
// for file uploading
const storage = firebase.storage();
// for authentication
const auth = firebase.auth();
// for google authentication
const provider = new firebase.auth.GoogleAuthProvider();

export { auth, provider, db };
Posted by: Guest on June-07-2021

Code answers related to "firebase config initialize"

Code answers related to "Javascript"

Browse Popular Code Answers by Language