react-google-login icon indicating copy to clipboard operation
react-google-login copied to clipboard

login button is disabled

Open AlenToma opened this issue 6 years ago • 38 comments

Hi, Im using this script to login to google but the login button is disabled

I dont see any error, or information why this happen any idee here pls help

 <GoogleLogin
                                disabled={false}
                                clientId="**********-akj6ujapgd722u0kqaib2lmca3mu71vt.apps.googleusercontent.com"
                                buttonText="Login"
                                onSuccess={this.responseGoogle}
                                onFailure={this.responseGoogle}
                                cookiePolicy={'single_host_origin'}
                            />

AlenToma avatar Apr 06 '20 03:04 AlenToma

There might be a reason why it's disabled, responseGoogle prints that, please see what's the error

 responseGoogle = (response) => {
  console.log(response);
}

madhu131313 avatar Apr 06 '20 04:04 madhu131313

there was no response to log, but i got it to work at last now, you may close this if you want

AlenToma avatar Apr 06 '20 05:04 AlenToma

Hi @AlenToma Please let me know how you fix this issue. Now I'm facing same kind of problem.

Thanks.

FrozenIce0617 avatar Apr 09 '20 11:04 FrozenIce0617

in google console under Authorized JavaScript origins I added https://localhost, And it worked.

Thats all i did.

AlenToma avatar Apr 09 '20 14:04 AlenToma

disabled={false}

i have this error tooo please Do Something , button is disable as well as nothing it does no any call in network tab

akshayrathodar avatar Apr 14 '20 15:04 akshayrathodar

@AlenToma

I just added Authorized JavaScript origin, and it's not still working.. =[

seeck3 avatar Apr 17 '20 12:04 seeck3

I really don`t know, i just added it and started working on its own.

AlenToma avatar Apr 17 '20 15:04 AlenToma

I have added to my JavaScript Authorized

ONUOHA92 avatar Apr 17 '20 18:04 ONUOHA92

And is not working

ONUOHA92 avatar Apr 17 '20 18:04 ONUOHA92

I have the same issue.

nguyendviet avatar Apr 22 '20 15:04 nguyendviet

Same Problem here, Button is disabled....

and I noticed one thing... at Starting its disabled.. If i go to another page and come back... it gets enabled...

But not good for users....

Please fix this

Ishu1998 avatar Apr 23 '20 01:04 Ishu1998

same problem here, manual refresh enable the button but at first page load the buttons are disabled (login + logout)

<GoogleLogin clientId="..." fields="first_name,last_name,email,picture" onSuccess={responseGoogle} onFailure={responseGoogle} buttonText="LogIn" isSignedIn={true} // hostedDomain="gmail.com" />

RealSlimMahdi avatar Apr 30 '20 07:04 RealSlimMahdi

Hi Again,

After inserting this code from google documentation: in Header: <meta name="google-signin-client_id" content="YOUR CLIENT ID" />

Right after body tag: <script src="https://apis.google.com/js/platform.js" async defer></script>

I do not experience the issue anymore and the buttons are enabled from start.

RealSlimMahdi avatar Apr 30 '20 08:04 RealSlimMahdi

Hi, guys. Did you find any solution? Got the same issue. Tried all suggestions in comments above(

moroz112 avatar May 12 '20 12:05 moroz112

Bro i don't know what is algorithm behind this google auth but after 2 day it will works automatically

On Tue, May 12, 2020, 5:54 PM Мороз Александр [email protected] wrote:

Hi, guys. Did you find any solution? Got the same issue. Tried all suggestions in comments above(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/anthonyjgrove/react-google-login/issues/313#issuecomment-627309349, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMLYS5553HGBKOLPE6G6K3DRRE5WJANCNFSM4MB4LJUA .

akshayrathodar avatar May 12 '20 12:05 akshayrathodar

Hopefully v5.1.18 should this. Let me know if it has not.

anthonyjgrove avatar May 12 '20 15:05 anthonyjgrove

I got same problem

markociglar avatar May 18 '20 22:05 markociglar

@markociglar please provide an example with your props

anthonyjgrove avatar May 19 '20 03:05 anthonyjgrove

I used the default configurations. The button is disable hence I cannot click it to view the response causing the error. Anyone has a working solution. Any Help will be useful thanks.

harry100 avatar May 22 '20 09:05 harry100

Bro I don't know how but it will work but after getting this error 3 days later it will work automatically

On Fri, May 22, 2020, 3:23 PM Amanda Maharjan [email protected] wrote:

I used the default configurations. The button is disable hence I cannot click it to view the response causing the error. Anyone has a working solution. Any Help will be useful thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/anthonyjgrove/react-google-login/issues/313#issuecomment-632605270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMLYS53ZSXQZ5SCZFJBPJTTRSZDQ3ANCNFSM4MB4LJUA .

akshayrathodar avatar May 22 '20 13:05 akshayrathodar