• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

340
Views
Calling reauthenticateWithCredential() throws TypeError

Calling reauthenticateWithCredential() is throwing the following error:

core.js:6486 ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'tenantId')
TypeError: Cannot read properties of undefined (reading 'tenantId')
    at _addTidIfNecessary (index-585b6059.js:907:14)
    at index-585b6059.js:2756:122
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (asyncToGenerator.js:3:1)
    at _next (asyncToGenerator.js:25:1)
    at asyncToGenerator.js:32:1
    at new ZoneAwarePromise (zone.js:1340:1)
    at asyncToGenerator.js:21:1
    at _signInWithPassword (index-585b6059.js:2757:2)
    at signInWithPassword (index-585b6059.js:2755:16)
    at resolvePromise (zone.js:1255:1)
    at resolvePromise (zone.js:1209:1)
    at zone.js:1321:1
    at ZoneDelegate.invokeTask (zone.js:434:1)
    at Object.onInvokeTask (core.js:28667:1)
    at ZoneDelegate.invokeTask (zone.js:433:1)
    at Zone.runTask (zone.js:205:1)
    at drainMicroTaskQueue (zone.js:620:1)
    at ZoneTask.invokeTask [as invoke] (zone.js:520:1)
    at invokeTask (zone.js:1656:1)

The code I am running:

const credential = firebase.auth.EmailAuthProvider.credential(email, password)

reauthenticateWithCredential(currentUser, credential)
  .then(
    (userCredential) => {
      this.logger.debug("User re-authenticated. Updating email now");
      updateEmail(userCredential.user, email)
        .then(() => {
            this.logger.debug("User email updated")
          },
          (error) => {
            this.logger.error(error);
          });
    }
  );

Any ideas what's causing this?

about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error