Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Ti consigliamo di fornire un modo per eliminare l'associazione tra la tua app e l'account di un utente. Aggiungendo questa funzionalità alla tua app, puoi rispondere all'evento e attivare qualsiasi logica appropriata, ad esempio l'eliminazione delle informazioni personali associate all'account.
Il seguente esempio di JavaScript mostra come revocare gli ambiti di un utente
programmaticamente.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eThe Google Sign-In JavaScript library is deprecated and will eventually be sunset.\u003c/p\u003e\n"],["\u003cp\u003eFedCM APIs will be required for Google Sign-In, necessitating an impact assessment to ensure continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eApplications should implement a method for users to disconnect their accounts and delete associated data.\u003c/p\u003e\n"]]],[],null,["# Disconnecting and revoking scopes\n\n| **Warning:** The Google Sign-In library optionally uses FedCM APIs, and their use will become a requirement. [Conduct an impact assessment](/identity/sign-in/web/gsi-with-fedcm) to confirm that user sign-in continues to function as expected. \n|\n| Support for the Google Sign-In library is deprecated, see the [Deprecation and Sunset](/identity/sign-in/web/deprecation-and-sunset) guide for more.\n\nIt is recommended that\nyour app provide a way to delete the association between your app and a\nuser's account. By adding this capability to your app, you can respond to the\nevent and trigger any appropriate logic such as deleting personal information\nassociated with the account.\n\nThe following JavaScript example demonstrates how to revoke a user's scopes\nprogrammatically. \n\n var revokeAllScopes = function() {\n gapi.auth2.getAuthInstance().disconnect();\n }"]]