Google Identity Services is migrating to FedCM APIs. Follow the migration guide to review potential changes and avoid negative impacts for user sign-in to your website.
Stay organized with collections
Save and categorize content based on your preferences.
In dynamically generated HTML pages, you're able to include the g_id_onload ID
when the login is required and remove it after a user session is established.
However, to toggle the One Tap display for your static HTML pages, you can't
change the HTML content.
The way that you can set up One Tap to toggle its display status is to specify
a cookie with the data-skip_prompt_cookie attribute. If the cookie isn't set,
or the value is empty, our client library functions normally. Otherwise, the
client library stops running and One Tap isn't displayed.
You can set your cookie name with the following code snippet: