Select Git revision
Preprocessor10.scala
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();