Skip to content

Instantly share code, notes, and snippets.

View zalex2600-code's full-sized avatar

zalex2600-code

  • Joined Aug 31, 2025
View GitHub Profile
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.1/firebase-app.js";
import { getAuth, onAuthStateChanged, createUserWithEmailAndPassword, signInWithEmailAndPassword, signOut } from "https://www.gstatic.com/firebasejs/9.6.1/firebase-auth.js";
import { getFirestore, doc, getDoc, setDoc } from "https://www.gstatic.com/firebasejs/9.6.1/firebase-firestore.js";
// La variable `firebaseConfig` ya está definida globalmente desde la inyección de código.
const app = initializeApp(window.firebaseConfig);
const auth = getAuth();
const db = getFirestore();
// Elementos UI