Need to fix index load issues

This commit is contained in:
gamer147
2026-05-23 14:50:16 -04:00
parent bf6ddf5428
commit 631e42289a
12 changed files with 351 additions and 119 deletions

View File

@@ -19,6 +19,14 @@ public class SteamSessionService : IDisposable
/// <returns>whether the ticket is valid for the given steamid</returns>
public bool IsTicketValidForUser(string ticket, ulong steamId)
{
if (string.IsNullOrEmpty(ticket))
{
// Caller already shouldn't pass null/empty here, but a misshaped request body
// (e.g. wrong casing) used to NRE on the ConcurrentDictionary lookup below.
// Fail cleanly so the auth pipeline returns 401 instead of crashing the request.
return false;
}
if (_validatedSessionTickets.TryGetValue(ticket, out ulong storedSteamId))
{
return storedSteamId == steamId;