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

Add 'plugin-name' in params for gapi.auth2.init #539

Open denl95 opened 2 years ago

denl95 commented 2 years ago

From google developers https://developers.google.com/identity/sign-in/web/reference: We are discontinuing the Google Sign-In JavaScript Platform Library for web. The library will be unavailable for download after the March 31, 2023 deprecation date. Instead, use the new Google Identity Services for Web. By default, newly created Client IDs are now blocked from using the older Platform Library, existing Client IDs are unaffected. New Client IDs created before July 29th, 2022 can set plugin_name to enable use of the Google Platform Library.

denl95 commented 2 years ago

@anthonyjgrove Please review this PR.