backend: Enforce notification access and clear push devices
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user