We are discontinuing the Google Sign-In JavaScript Platform Library for web. For authentication and user sign-in, use the new Google Identity Services SDKs for both Web and Android instead.

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() {