'Having a trouble with Google OAuth2. Can't sign up with google

Been facing this issue "You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the Migration Guide for more information." How to sign in with google now if they have block client ID for new users



Solution 1:[1]

as google will deprecate their old sign in library https://developers.googleblog.com/2021/08/gsi-jsweb-deprecation.html

you can now implement their new google service identity SDK https://developers.google.com/identity/gsi/web

or if you are using react, I made a small package https://www.npmjs.com/package/@react-oauth/google it is using the new SDK

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1