revokeToken method

Future<void> revokeToken()

Sends a network request to revoke OAuth refresh and access tokens.

This call will fail if the tokens have not been successfully revoked.

Return Value: A Future that has no return value.

Implementation

Future<void> revokeToken() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OAuthUserCredential_revokeTokenAsync(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (_) {},
  );
}