revoke method
Revokes all of the scopes that the user granted to the app.
A valid accessToken
is required to revoke permissions.
The done
callback is called once the revoke action is done. It must be
a Dart function and not a JS function.
Method: google.accounts.oauth2.revoke https://developers.google.com/identity/oauth2/web/reference/js-reference#google.accounts.oauth2.revoke
Implementation
void revoke(
String accessToken, [
RevokeTokenDoneFn? done,
]) {
if (done == null) {
return _revoke(accessToken.toJS);
}
return _revokeWithDone(accessToken.toJS, done.toJS);
}