removeClient method Null safety

Future removeClient(
  1. String? clientID
)

Revokes a AuthClient record.

Removes cached occurrences of AuthClient for clientID. Asks delegate to remove an AuthClient by its ID via AuthServerDelegate.removeClient.

Implementation

Future removeClient(String? clientID) async {
  if (clientID == null) {
    throw AuthServerException(AuthRequestError.invalidClient, null);
  }

  return delegate.removeClient(this, clientID);
}