revokeOAuthTokens static method

Future<void> revokeOAuthTokens()

Revoke all OAuth tokens. The returned Future completes when all tokens have been successfully revoked.

Implementation

static Future<void> revokeOAuthTokens() async {
  await Future.wait(
    ArcGISEnvironment.authenticationManager.arcGISCredentialStore
        .getCredentials()
        .whereType<OAuthUserCredential>()
        .map((credential) => credential.revokeToken()),
  );
}