-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.example.js
More file actions
27 lines (23 loc) · 986 Bytes
/
firebaseConfig.example.js
File metadata and controls
27 lines (23 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// =======================================================
// iThyMag — firebaseConfig.example.js
// Configuración de Firebase
// Copia esto en src/firebaseConfig.js y pon tus llaves
// ========================================================
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getAuth, GoogleAuthProvider } from "firebase/auth";
// Reemplaza estos valores con los de tu proyecto en Firebase Console
const firebaseConfig = {
apiKey: "TU_API_KEY",
authDomain: "TU_PROYECTO.firebaseapp.com",
projectId: "TU_PROYECTO",
storageBucket: "TU_PROYECTO.appspot.com",
messagingSenderId: "TU_ID",
appId: "TU_APP_ID",
// measurementId: "G-XXXXXXX" // Opcional: Solo si usas Google Analytics
};
const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
export const auth = getAuth(app);
export const provider = new GoogleAuthProvider();
export const googleProvider = provider;