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

180
Views
createUserWithEmailAndPassword no es una función vuejs

Estoy tratando de usar Firebase pero parece que me estoy perdiendo la configuración,

así que básicamente mi archivo firebaseinit.js debe contener mi configuración de firebase

 import { initializeApp } from 'firebase/app'; import { getDatabase } from "firebase/database"; import { getAuth } from 'firebase/auth' const firebaseConfig = { //my configs }; //initialize the firebase app let app = initializeApp(firebaseConfig) //initialize firebase auth const auth = getAuth(app) // Get a reference to the database service const database = getDatabase(app); //export the auth and db object export { auth , database }

y en mi vista register.vue , he importado

 import {auth,db } from "../firebase/firebaseinit.js";

y en función de register

 const createUser = await auth.createUserWithEmailAndPassword(this.email, this.password); const result = await createUser; const dataBase = db.collection("users").doc(result.user.uid); await dataBase.set({ name : this.name, username: this.username, email: this.email, });

pero dice que createUserWithEmailAndPassword no está definido

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!