Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!