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.
Overview
User consent to share an ID token can be revoked.
Users signing in for the first time are prompted for consent to share their
Google Account profile information with your platform.
If user consent is given a JSON Web Token (JWT)
credential known as an
ID token is shared when any of the Sign In With Google, One Tap or Automatic
sign-in buttons are loaded.
A common scenario is for a new user account to be created on your platform
during sign up. Later, a user may choose to delete their account and "unlink"
your platform from their Google Account, stopping ID token sharing.
Calling the revoke method requires the Google Account owner to re-consent to
share the ID token on their next visit to your site.
Revocation methods
Google uses an OAuth 2.0 grant to manage user consent and ID token sharing to
your platform's Client ID. Revoking consent stops Google from sharing the
ID token when the client library is loaded by any pages on your site.
[[["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."],[[["User consent to share an ID token, allowing your platform access to their Google Account profile information, can be revoked at any time."],["Users can revoke consent either through their Google Account settings or your platform can initiate it programmatically using the `google.accounts.id.revoke` method."],["Revoking consent requires the user to re-consent to share their ID token when they next visit your site, essentially \"unlinking\" your platform from their Google Account."],["The `google.accounts.id.revoke` method specifically manages ID token sharing and does not affect OAuth2.0 authorization scopes or grants."]]],[]]