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

155
Views
Why is firebase.auth undefined

I am using React and Firebase. I am trying to check, wether the user is authenticated. I have initialized firebase in a firebase config file and therefore import firebase from the file:

import { firebase } from './utils/firebase';

Inside of this File I imported getAuth and everything else I then tried to check the logged in Status with the following code:

    const[isUserSignedIn, setIsUsersignedIn] = useState(true);

  var user = firebase.auth().currentUser;
    if(user) {
      return setIsUsersignedIn(true);
    }
    else{
      setIsUsersignedIn(false);
    }

But i receive the following Error:

> Uncaught TypeError: _utils_firebase__WEBPACK_IMPORTED_MODULE_0__.firebase.auth is not a function

Please help.

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!