Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import "firebase/auth";
import "firebase/storage";
import "firebase/database";
import GeoFire from "geofire";
var config = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
databaseURL: process.env.REACT_APP_DATABASE_URL,
projectId: process.env.REACT_APP_PROJECT_ID
};
firebase.initializeApp(config);
export const ref = firebase.database().ref();
export const firebaseAuth = firebase.auth;
export const geoFire = new GeoFire(ref);
export default firebase;