revoke method

void revoke(
  1. String hint, [
  2. RevocationResponseHandlerFn? callback
])

Revokes the OAuth grant used to share the ID token for the specified user.

hint is the email address or unique ID of the user's Google Account. The ID is the sub property of the CredentialResponse.credential payload.

The optional callback is a function that gets called to report on the success of the revocation call.

Method: google.accounts.id.revoke https://developers.google.com/identity/gsi/web/reference/js-reference#google.accounts.id.revoke

Implementation

void revoke(String hint, [RevocationResponseHandlerFn? callback]) {
  if (callback == null) {
    return _revoke(hint.toJS);
  }
  return _revokeWithCallback(hint.toJS, callback.toJS);
}