login button is disabled
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'}
/>
There might be a reason why it's disabled, responseGoogle prints that, please see what's the error
responseGoogle = (response) => {
console.log(response);
}
there was no response to log, but i got it to work at last now, you may close this if you want
Hi @AlenToma Please let me know how you fix this issue. Now I'm facing same kind of problem.
Thanks.
in google console under Authorized JavaScript origins I added https://localhost, And it worked.
Thats all i did.
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
@AlenToma
I just added Authorized JavaScript origin, and it's not still working.. =[
I really don`t know, i just added it and started working on its own.
I have added to my JavaScript Authorized
And is not working
I have the same issue.
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
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"
/>
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.
Hi, guys. Did you find any solution? Got the same issue. Tried all suggestions in comments above(
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 .
Hopefully v5.1.18 should this. Let me know if it has not.
I got same problem
@markociglar please provide an example with your props
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.
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 .