Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google SSO login error: "popup_closed_by_user"

After setting up and running with my own client id I go through the login process and select the needed google account in the popup.

Once this has been selected the login fails with the error in the console being:

err = {error: "popup_closed_by_user"}

can anybody help me to solve this

like image 524
Bhrungarajni Avatar asked Feb 08 '18 10:02

Bhrungarajni


3 Answers

Try clearing your browser cache.

In Chrome: Settings → Advanced → Clear browsing data → Cached images and files

like image 166
Craicerjack Avatar answered Nov 06 '22 00:11

Craicerjack


Even I faced same issues when I want to login using angular4-social-login. It is because of cookies and pop-up settings in the browser. It will work in IE without errors. In Chrome settings go to content settings in that change cookies settings and allow pop-ups. Then clear cache and reload. the app.

like image 14
harsha Avatar answered Nov 06 '22 00:11

harsha


If you are testing against localhost with port then we should add port number in google developer console on Authorized JavaScript origins section like below

http://localhost:3000

Hope this resolve the issue.

like image 14
Raja Jaganathan Avatar answered Nov 06 '22 00:11

Raja Jaganathan