Skip to content

Instantly share code, notes, and snippets.

@GeoffMahugu
Created May 15, 2021 13:39
Show Gist options
  • Save GeoffMahugu/af2fbf43e1a2336c21b487bf1cd590e4 to your computer and use it in GitHub Desktop.
Save GeoffMahugu/af2fbf43e1a2336c21b487bf1cd590e4 to your computer and use it in GitHub Desktop.
This is react firebase configuration file
import firebase from 'firebase/app';
import 'firebase/auth';
import config from './config';
const Firebase = firebase.initializeApp(config.firebase);
// Add or Remove authentification methods here.
export const Providers = {
google: new firebase.auth.GoogleAuthProvider(),
facebook: new firebase.auth.FacebookAuthProvider(),
};
export const auth = firebase.auth();
export default Firebase;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment