revokeConsent function

Future<void> revokeConsent(
  1. String accessTokenValue
)

Revokes all of the scopes that the user granted to the app.

A valid accessTokenValue is required to revoke the permission.

Implementation

Future<void> revokeConsent(String accessTokenValue) {
  final completer = Completer<void>();

  void done(Object? arg) {
    window.console.log(arg);
    completer.complete();
  }

  gis.oauth2.revoke(accessTokenValue, allowInterop(done));

  return completer.future;
}