🐛 Fix logout device

This commit is contained in:
2025-08-15 03:06:33 +08:00
parent a9aab6b7e5
commit 5bb5018cc0

View File

@@ -516,6 +516,9 @@ public class AccountService(
new UnsubscribePushNotificationsRequest() { DeviceId = device.DeviceId } new UnsubscribePushNotificationsRequest() { DeviceId = device.DeviceId }
); );
db.AuthClients.Remove(device);
await db.SaveChangesAsync();
var sessions = await db.AuthSessions var sessions = await db.AuthSessions
.Include(s => s.Challenge) .Include(s => s.Challenge)
.Where(s => s.Challenge.ClientId == device.Id) .Where(s => s.Challenge.ClientId == device.Id)