Code Monkey home page Code Monkey logo

Comments (11)

thakurinbox avatar thakurinbox commented on May 27, 2024 6

Add Authorized JavaScript origins in the following order if you are using localhost :

screen shot 2017-07-17 at 8 32 33 am

Note that you need to add one with port and one without port. Replace the port with your :P

from react-google-login.

patrik-simunic-cz avatar patrik-simunic-cz commented on May 27, 2024 2

So, I've just solved the issues. Problem was, origin url was not allowed, but instead of getting not valid origin error, the window auto closed and I got popup closed by user error.

from react-google-login.

 avatar commented on May 27, 2024

I am having the same issue. I have origin url correctly setup, after I login and grant permissions the windows closes and I receive {error: "popup_closed_by_user"}

from react-google-login.

anthonyjgrove avatar anthonyjgrove commented on May 27, 2024

@camslaz can you paste in how you have the component setup?

from react-google-login.

1755 avatar 1755 commented on May 27, 2024

I have the same error.

Here is my configuration:
[email protected]

<GoogleLoginComponent
                clientId="17197425356-c7v22c3kasiir0vjllj5g6sl1gsf07v8.apps.googleusercontent.com"
                buttonText="G+"
                className="google-login"
                autoLoad={true}
                onSuccess={this.onGoogleResponse}
                onFailure={this.onGoogleFailure}
            />

I've added my dev server URL(http://localhost:8050/) in the origin setting

Every time a popup window close instantly with error {error: "popup_closed_by_user"} after I've logged in the Google

from react-google-login.

1755 avatar 1755 commented on May 27, 2024

I've found that this error arise when google chrome blocks popup window

from react-google-login.

shishircc avatar shishircc commented on May 27, 2024

@1755 did you find any solution for this ?

from react-google-login.

1755 avatar 1755 commented on May 27, 2024

@shishircc It was caused because AdBlok(or Google Chrome) has blocked popups

from react-google-login.

umerrauf6 avatar umerrauf6 commented on May 27, 2024

same error.

Here is my configuration:

tried this .still getting same error

from react-google-login.

utsavvasoya8585 avatar utsavvasoya8585 commented on May 27, 2024

So, I've just solved the issues. Problem was, origin url was not allowed, but instead of getting not valid origin error, the window auto closed and I got popup closed by user error.

Hey i have also got same erroe
Can you help me to solve this error

from react-google-login.

utsavvasoya8585 avatar utsavvasoya8585 commented on May 27, 2024

So, I've just solved the issues. Problem was, origin url was not allowed, but instead of getting not valid origin error, the window auto closed and I got popup closed by user error.

Hey i have also got same erroe
Can you help me to solve this error

from react-google-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.