Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda