Method ListAsync(long, CancellationToken)
Lists all valid permanent consent grants for a user.
Includes application info (ClientId, DisplayName) by loading the referenced apps.
Application metadata is fetched in a single batched WhereInRedb(o => o.Id, ids)
query rather than per-row IRedbService.LoadAsync — a power user (or a
service-principal that accumulated many permanent grants over time) would
otherwise turn this admin endpoint into an O(N) round-trip storm. Production
repro: a single user with ~1300 permanent grants caused this method to take ~10 s
because each ApplicationProps load was a separate DB round-trip.
public Task<List<ConsentService.ConsentInfo>> ListAsync(long userId, CancellationToken ct = default)