Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda