anthonyjgrove / react-google-login

A React Google Login Component
https://anthonyjgrove.github.io/react-google-login
MIT License
1.84k stars 427 forks source link

Plugin name #521

Open DavidMorgan92 opened 2 years ago

DavidMorgan92 commented 2 years ago

This enables use of Google Sign-In until July 29th 2022 as described at the top of the page here: https://developers.google.com/identity/sign-in/web/reference.

Added a pluginName parameter to useGoogleLogin which gets passed to window.gapi.auth2.init. Also added a pluginName prop to GoogleLogin which gets passed to useGoogleLogin.

My first pull request, I hope it's acceptable :)

pierroberto commented 1 year ago

@DavidMorgan92 I think you should update the README file with the new parameter pluginName.