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

504
Views
error con reauthenticateWithCredential obtener error TypeError: credential._getReauthenticationResolver no es una función (firebase 9)

Estoy aprendiendo base de fuego. ahora quiero cambiar la contraseña con reauthenticateWithCredential(). pero recibe un error como este.

TypeError: credential._getReauthenticationResolver no es una función

este el codigo:

 import { getAuth, reauthenticateWithCredential, signInWithEmailAndPassword } from "firebase/auth"; const auth = getAuth(); const user = auth.currentUser; const credential = signInWithEmailAndPassword(auth, user.email, this.oldPassword); reauthenticateWithCredential(user, credential).then(() => { // User re-authenticated. console.log(credential) }).catch((error) => { console.log(error) });

¿alguien puede indicar donde esta el error?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tal vez todavía no esté del todo bien, pero pruébalo:

 import { getAuth, reauthenticateWithCredential, EmailAuthProvider, } from "firebase/auth"; const auth = getAuth(); const user = auth.currentUser; try { const credential = EmailAuthProvider.credential( user.email, this.oldPassword ); reauthenticateWithCredential(user, credential).then(() => { // User re-authenticated. // Code... }); } catch (error) { console.log(error.message); }
about 4 years ago · Juan Pablo Isaza Report
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!