我们 即将停用适用于网页的 Google 登录 JavaScript 平台库。此库将于 2023 年 3 月 31 日弃用后停止下载。请改用新版网页版 Google Identity Services。
现在,系统会禁止新创建的客户端 ID 使用旧版平台库,现有的客户端 ID 不受影响。在 2022 年 7 月 29 日之前创建的新客户端 ID 可以设置 `plugin_name` 以允许使用 Google 平台库。

Disconnecting and revoking scopes

It is recommended that your app provide a way to delete the association between your app and a user's account. By adding this capability to your app, you can respond to the event and trigger any appropriate logic such as deleting personal information associated with the account.

The following JavaScript example demonstrates how to revoke a user's scopes programmatically.

var revokeAllScopes = function() {
  gapi.auth2.getAuthInstance().disconnect();
}