Отключение и отзыв областей действия
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Рекомендуется, чтобы ваше приложение предоставляло возможность удалить связь между вашим приложением и учетной записью пользователя. Добавив эту возможность в свое приложение, вы можете отреагировать на событие и активировать любую соответствующую логику, например удаление личной информации, связанной с учетной записью.
В следующем примере JavaScript показано, как программно отозвать области пользователя.
var revokeAllScopes = function() {
gapi.auth2.getAuthInstance().disconnect();
}
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 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 }"]]