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

131
Vistas
react firebase login with google

I am trying to have a authentication in react with firebase. When I try to sign in, the googleauth provider pops up but is always blank. It was working before but now it is not working

import firebase from 'firebase'
import { auth } from '../firebase.js'
import { Button } from '@material-ui/core'
   
   
function SignIn() {
   function signInWithGoogle() {
       const provider = new firebase.auth.GoogleAuthProvider()
       auth.signInWithPopup(provider)
   }
   return (
       <div style={{ display: 'flex', justifyContent: 'center', height: '100vh', alignItems: 'center' ,backgroundColor: '#e3e7ea',width: '100vw',}}>
               <div style={{textAlign: 'center',color:"#708090"}}>
                   <h1>Chat it!</h1>
                   <button className="btn" onClick={signInWithGoogle}>Sign In With Google</button>
               </div>
           </div>
       )
   }
   
export default SignIn
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you said it was working well before, try

signInWithRedirect

instead of:

signInWithPopup

To see if the problem is about popup blocking by the browser or not.

about 4 years ago · Juan Pablo Isaza Denunciar
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