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

1.1K
Views
{error: 'popup_closed_by_user'} while using react-google-login

I'm using react-google-login to login users using their Google account. When they finish logging in and being redirected to back i get an error in the console.

{error: 'popup_closed_by_user'}

This is my functions Below :

const onSuccess = (response) => {
   console.log('Login Successful', response)
}

const onFailure = (response) => {
   console.log('Login Failed', response)
}

My Google Button

<GoogleLogin
  clientId={clientId}
  render={renderProps => (
     <button onClick={renderProps.onClick} disabled= 
        {renderProps.disabled} className="btn mt-5 btn-google btn-user btn-block">
        <AiOutlineGoogle className='scIcons inline' /> Login with Google
     </button>
  )}
  buttonText="Login"
  onSuccess={onSuccess}
  onFailure={onFailure}
  cookiePolicy={'single_host_origin'}
  isSignedIn={true}
 />

Please I need help with this.

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