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

242
Visualizações
Hide auto pop up for google login api javascript

I used new Google login using new JavaScript API , I have problem that the when the page reloaded popup shown for login by google for login google accounts, I tried to find a way from the documentation but no result.

Is there a way to prevent the popup from shown?

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Absolutely ! I had the same issue a while back. Here you can see the structure of the Javascript API. Remove the google.accounts.id.prompt(); line. Below is the complete initialization code for this.

window.onload = function () {
google.accounts.id.initialize({
  client_id: 'YOUR_GOOGLE_CLIENT_ID',
  callback: handleCredentialResponse
});
// remove this line
google.accounts.id.prompt();
};

For the sign in or sign up with google btn only the accounts.id.initialize is required.

Take a look at this documentation for further customization

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