Skip to content
Snippets Groups Projects
Select Git revision
  • 030b580131c82e4d06785b2798fce1b8c3ad1a52
  • master default protected
  • recursive
  • recursive_count
  • single
  • JOIN_OPTIMIZE
6 results

Preprocessor10.scala

Blame
  • firebase.js 1.03 KiB
    // Import the functions you need from the SDKs you need
    import { initializeApp } from "firebase/app";
    import { getAnalytics } from "firebase/analytics";
    import { getFirestore } from "firebase/firestore";
    import { GoogleAuthProvider,getAuth } from "firebase/auth";
    
    // 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
    // For Firebase JS SDK v7.20.0 and later, measurementId is optional
    const firebaseConfig = {
      apiKey: "AIzaSyBcgp9OwK_Kl224qoMM1g-ci3DoEk51N_Q",
      authDomain: "petshop-6db29.firebaseapp.com",
      projectId: "petshop-6db29",
      storageBucket: "petshop-6db29.appspot.com",
      messagingSenderId: "783017101655",
      appId: "1:783017101655:web:775bddea48dc9e82905612",
      measurementId: "G-2Z34YM3Z6Q",
    };
    
    // Initialize Firebase
    const app = initializeApp(firebaseConfig);
    const analytics = getAnalytics(app);
    
    export const db = getFirestore(app);
    export const auth = getAuth();
    export const auth_provider = new GoogleAuthProvider();