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

153
Vistas
How can I make the user object from Firebase accessible throughout my web application?

I just implemented "Sign In With Google" with Firebase on my web application. A button is click, the pop-up is generated, and the user is signed in. Firebase creates a "user" object. However, when I try to reference the user object in the front end in a Pug template, it won't show up.

          h1.ml-3.text-2xl.font-bold.leading-7.text-gray-900(class='sm:leading-9 sm:truncate')
            | Good morning, #{user.displayName}

However, if I console.log user.displayName from my index.js file, it will show the display name as expected.

What is the best way to allow the user object to be available throughout my application?

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