Sign out invalid auth cookies when player no longer exists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user