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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Customize the default login flow to meet specific requirements using various options."],["For dynamic HTML pages, control One Tap display by including or removing the `g_id_onload` ID based on user session status."],["For static HTML pages, toggle One Tap display by setting a cookie specified with the `data-skip_prompt_cookie` attribute; an empty or missing cookie displays One Tap, otherwise, it's hidden."],["Use the provided code snippet to define the cookie name controlling the One Tap prompt for your static HTML pages, replacing placeholders with your specific values."]]],[]]