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

150
Views
publicar error de autenticación de base de fuego con reaccionar js

me encuentro con un problema relacionado con la autenticación de base de fuego ingrese la descripción de la imagen aquí así que cada vez que envíe el formulario, el estado obtendrá los datos de registro, pero no los enviará a mi base de datos de firebase utils.js

 export const handleUserProfile = async({ userAuth, additionalData }) => { if (!userAuth) return; const { uid } = userAuth; const userRef = firestore.doc(`users/${uid}`); const snapshot = await userRef.get(); if (!snapshot.exists) { const { displayName, email } = userAuth; const timestamp = new Date(); const userRoles = ['user']; try { await userRef.set({ displayName, email, createdDate: timestamp, userRoles, ...additionalData }); } catch (err) { console.log(err); } } return userRef; };

en Signup.js:

 handleSubmit = async event => { event.preventDefault(); const { displayName, email, password, confirmPassword } = this.state; if (password !== confirmPassword) { const err = ['Password Don\'t match']; this.setState({ errors: err }) return } try { const { user } = await auth.createUserWithEmailAndPassword(email, password); await handleUserProfile(user, { displayName }) this.setState({ ...initialState }) } catch (err) { } }

donde me estoy perdiendo

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!