Skip to content

Instantly share code, notes, and snippets.

@jorarmarfin
Created July 29, 2024 01:48
Show Gist options
  • Save jorarmarfin/f5e4ab362a4662121b6d4566a5812b9b to your computer and use it in GitHub Desktop.
Save jorarmarfin/f5e4ab362a4662121b6d4566a5812b9b to your computer and use it in GitHub Desktop.
Config for Firebase
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from "firebase/firestore";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "",
authDomain: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: ""
};
// Initialize Firebase
export const FirebaseApp = initializeApp(firebaseConfig);
export const FirebaseAuth = getAuth(FirebaseApp);
export const FirebaseFirestore = getFirestore(FirebaseApp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment