invalidateApiKey method

Future<bool> invalidateApiKey(
  1. String apiKey
)

Invalidates the given api key

Implementation

Future<bool> invalidateApiKey(String apiKey) async {
  try {
    await _delete('/api/api_key/$apiKey');

    return true;
  } catch (e) {
    return false;
  }
}