Invalidate JWTs on profile changes
This commit is contained in:
@@ -53,6 +53,15 @@ public class ProfileRepository(DatabaseContext dbContext) : IProfileRepository
|
||||
x.PlatformId == platformId,
|
||||
ct);
|
||||
|
||||
public Task<Guid> GetProfileTokenVersion(
|
||||
Guid profileId,
|
||||
CancellationToken ct = default)
|
||||
=> dbContext.Profiles
|
||||
.AsNoTracking()
|
||||
.Where(x => x.ProfileId == profileId)
|
||||
.Select(x => x.TokenVersion)
|
||||
.FirstOrDefaultAsync(ct);
|
||||
|
||||
public async Task AddAsync(
|
||||
Profile profile,
|
||||
CancellationToken ct = default)
|
||||
|
||||
Reference in New Issue
Block a user