Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
¿Cómo usar la autenticación de base de fuego?

Quiero usar la base de datos Firebase Realtime para autenticar a mis usuarios y almacenar sus datos. Acabo de iniciar firebase y parece que han actualizado las etiquetas del script, no hay ningún video que use eso. ¿Alguien puede decirme el flujo de trabajo completo?

Lo que quiero ? El usuario inicia sesión y luego, cuando hace clic en Guardar, sus datos se guardan y cuando hace clic en un botón de carga, se deben recuperar los datos.

Mis problemas

  1. Si utilizo el código dado a continuación, entonces tengo que escribir javascript completo en el archivo html solo porque no puedo acceder a initializeApp() en mi archivo .js
 console.log(initializeApp)
 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Auth</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="auth"> <div class="login">Login</div> <div class="logout">Logout</div> </div> <script type="module"> // Import the functions you need from the SDKs you need import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.5/firebase-app.js"; // Your web app's Firebase configuration const firebaseConfig = { apiKey: "AIzaSyBp8Z9sTTI6XvrFIWZ71nbx-0NbsvXED_c", authDomain: "todo-firebase-a8101.firebaseapp.com", projectId: "todo-firebase-a8101", storageBucket: "todo-firebase-a8101.appspot.com", messagingSenderId: "309943992224", appId: "1:309943992224:web:19d0b8a537528400a2aec5" }; // Initialize Firebase const app = initializeApp(firebaseConfig); </script> <!-- <script type="module" src="https://www.gstatic.com/firebasejs/9.6.5/firebase-app.js"></script> --> <script src="index.js"></script> </body> </html>
  1. Además, la etiqueta de script comentada arroja el mismo error, ¿Cómo resolver esto?
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!