question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pop up closed by user error

See original GitHub issue

Some of my users get pop up closed by user error. One of my team-mates also get the same error and he fixed it with clearing his cache but we can’t ask it to our users, so how can I fix it and be sure about it’s fixed. This is my code if it’s related.

<GoogleLogin
          clientId="blablabla.apps.googleusercontent.com"
          buttonText="LOGIN"
          onSuccess={responseGoogle}
          onFailure={responseGoogle}
          cookiePolicy={'single_host_origin'}
          scope={YOUTUBE_SCOPE}
          isSignedIn
        />

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
virgincodescommented, Oct 10, 2020

window.addEventListener("message", ({ data }) => { console.log(data) })

this solved my issue

2reactions
bashbaughcommented, Oct 8, 2020

It has nothing to do with the package, it’s because of google Oauth. If you want to authenticate with google you have to deal with it. I’m not really sure what the cookie_policy option does but you could try setting it to none maybe. @ozenesat

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google SSO login error: "popup_closed_by_user"
popup_closed_by_user issue has occurred because of chrome blocks all the third-party cookies by default. You have to allow a third-party cookie ...
Read more >
Error "popup_closed_by_user" · Issue #132 - GitHub
This is likely because your google + api is not enabled. Go to Library and search for plus api. There should be a...
Read more >
Google SSO Login error: “pop up closed by user” error
So as you'd guess, the solution is to go to your browser settings, clear all cache and cookies, and disable the setting that...
Read more >
Error "popup has been closed by the user before finalizing the ...
One thing to keep in mind, an issue was reported in Chrome when 3rd party cookies and data was disabled, the popup request...
Read more >
Google Sign-In JavaScript client reference | Authentication
Error codes. popup_closed_by_user: The user closed the popup before finishing the sign in flow. access_denied: The user denied the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found