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.

popup_closed_by_user

See original GitHub issue

When I click the button it opens the Google popup window. The i am able to select my Google account and log in, BUT then the popup automatically closes and i am redirected back with this response:

{error: "popup_closed_by_user"}

Now i understand from the docs that it means The user closed the popup before finishing the sign in flow. but it does not reflect the reality. After selecting my account it closed by itself and I have no idea how to get it to work.

I saw this other issue but even after enabling Google+ API i still get the error. https://github.com/anthonyjgrove/react-google-login/issues/132

Anybody has suggestions? Thanks

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:18
  • Comments:24

github_iconTop GitHub Comments

3reactions
joaoavila1987commented, Jun 21, 2022

Hi, I had the same problem, I solved the problem using a helper library

import { gapi } from ‘gapi-script’;

useEffect(() => { function start() { gapi.client.init({ clientId : idCliente, scope : ‘’ }) }; gapi.load(‘client:auth2’,start); });

I hope it helped you

0reactions
ojongfaloncommented, Nov 2, 2022

For me it’s back to normal. Maybe it’s because I installed the lib

What lib?

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 ...
Read more >
Error "popup_closed_by_user" · Issue #132 - GitHub
Getting 'popup closed by user' error after choosing Google account and clicking 'Allow' in popup screen. Here is my request:
Read more >
Google login on web - "popup_closed_by_user" - Adalo - Forum
I have set up the Google OAuth following the help steps. Everything seems to be matching the guide but when the authentication modal...
Read more >
Google Sign-In JavaScript client reference | Authentication
popup_closed_by_user : The user closed the popup before finishing the sign in flow. access_denied: The user denied the permission to the ...
Read more >
Google OAuth not working, google login error
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 from chrome ......
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