Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getChildContext() {
const { app, select, selectAuth, selectStorage, store } = this.props.store;
return {
firebase: {
app,
auth: firebase.auth(app),
firestore: firebase.firestore(app),
messaging: firebase.messaging(app),
select,
selectAuth,
selectStorage,
storage: firebase.storage(app),
store
}
};
}
storageBucket: "gs://myrjsecg.appspot.com",
messagingSenderId: "967963389163"
};
firebase.initializeApp(config);
export default firebase;
export const provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({
prompt: "select_account"
});
export const auth = firebase.auth();
export const db = firebase.firestore();
export const scenes = db.collection("scenes");
export const snaps = db.collection("snaps");
export const classes = db.collection("classes");
export const storageRef = firebase.storage().ref();