I have tried implementing google login using react-google-login package. I have put the client Id also put the URL correct http://localhost:3000 and https://localhost:3000. But I have been getting the issue with error message "idpiframe_initialization_failed" and detail like this: 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. I am really confused. Please take your time to help me on this one. Thank you.

<header className="App-header">
<h1>React Google Login App</h1>
<div>
{loginData ? (
<div>
<h3>You logged in as {loginData.email}</h3>
<button onClick={handleLogout}>Logout</button>
</div>
) : (
<GoogleLogin
clientId={"846142574809-apbj2h6v9upultr3qvfskn6kfght9udb.apps.googleusercontent.com"}
buttonText="Log in with Google"
onSuccess={handleLogin}
onFailure={handleFailure}
cookiePolicy={'single_host_origin'}
></GoogleLogin>
)}
<GoogleLogout clientId='846142574809-apbj2h6v9upultr3qvfskn6kfght9udb.apps.googleusercontent.com' buttonText='logout' onLogoutSuccess={handleoutSuccess}></GoogleLogout>
</div>
</header>
</div>```
React google login is using the old version of google which will be deprecated in March 31, 2023. Detail here. Check the implementation here
You can move to use the new library which support the newer version as comment above like https://www.npmjs.com/package/@react-oauth/google.
You can also implement by yourself: First you need to load script from google. Detail link:
https://developers.google.com/identity/gsi/web/guides/client-library
Then you need to do some setup and render the google button: