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.
Google One Tap stores user status in the g_state cookie. By default, the
cookie domain is set to the domain of current page.
If One Tap is displayed on the parent domain and subdomains, the state cookie
must be visible across all of your domains. In this case, you need to set the
cookie domain to your parent domain, mainly when you set the cookie from a
subdomain.
You can use the data-state_cookie_domain configuration parameter to change the
state cookie domain. The following code example shows how to set the
data-state_cookie_domain parameter:
[[["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."],[[["Google One Tap utilizes the `g_state` cookie to store user status, defaulting to the current page's domain."],["For One Tap functionality across multiple subdomains, the cookie domain should be explicitly set to the parent domain using the `data-state_cookie_domain` parameter."],["This ensures the state cookie is accessible across all related domains, enabling seamless user experiences with One Tap."]]],[]]