You should not call this method directly for Google, use "<asl-google-signin-button>" #596
-
How i can import these in my project? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Edit:It seems the GitHub documentation is updated with the newer way to use the Google Sign-in button, but the NPM docs aren't. See Sign in with google for details on how to implement it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help, guys! |
Beta Was this translation helpful? Give feedback.
-
I tried these ways, and it doesn't work. Can someone help me? ERROR Error: Uncaught (in promise): You should not call this method directly for Google, use "" wrapper or generate the button yourself with "google.accounts.id.renderButton()"
|
Beta Was this translation helpful? Give feedback.
I'm not sure why, but the documentation for this project doesn't match what the code says (as of 4bd9414). In order to create a Google Sign-in button, you have to use the directive<asl-google-signin-button>
rather than calling theauthService.signIn()
method. As far as I know, every other method still works fine.To see what the example uses, look at the template and removal of signInWithGoogle() method.Edit:
It seems the GitHub documentation is updated with the newer way to use the Google Sign-in button, but the NPM docs aren't. See Sign in with google for details on how to implement it.