backend: Enforce notification access and clear push devices

This commit is contained in:
GonnaHetzMe committed 2026-12-04 21:42:00 +01:00
1 parent ee5f1d3d10
commit 4f95c8a379
12 files changed
+145 -46

No files matched your search

@@ -34,10 +34,6 @@ public sealed class TokenRevocationService(IAppDbContext db, IRevokedTokenStore
Publish(await LoadRevokedAccessTokensAsync([userId], now, ct));
}
/// <summary>Zneplatní všechny platné tokeny uživatele – jeden UPDATE (kap. 10.1).</summary>
public async Task RevokeAllAsync(int userId, RevokeReason reason, CancellationToken ct) =>
Publish(await StageRevokeAllAsync([userId], reason, ct));
internal async Task<List<RevokedAccessToken>> StageRevokeAllAsync(int[] userIds, RevokeReason reason, CancellationToken ct)
{
var now = Now();