findAliasesOfUser method

Future<Iterable<AliasDoc>> findAliasesOfUser([
  1. int pageSize = 20
])

Implementation

Future<Iterable<AliasDoc>> findAliasesOfUser([int pageSize = 20]) async {
  if (_tokenProvider == null) throw Exception('missing token provider');
  final subject = _tokenProvider!.subject;
  final request = SearchAliasesRequest(pageSize: pageSize, subject: subject);
  final response =
      await _client.searchAliases(request, options: await _fetchOptions());
  final entries = response.aliases.map(AliasDoc.new);
  return entries;
}