Sign out invalid auth cookies when player no longer exists

This commit is contained in:
2026-02-05 17:09:58 +01:00
parent 6b5f8a66c9
commit c03cee1777
3 changed files with 33 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ if (!string.IsNullOrWhiteSpace(basePath))
app.UseGlobalExceptionLogging();
app.UseAuthentication();
app.UseMiddleware<EnsurePlayerExistsMiddleware>();
app.UseAuthorization();
// Ensure database and migrations are applied on startup