Files
systemrevivalserver/Services/Auth/ISessionRegistry.cs
T
2025-11-10 09:01:46 -05:00

14 lines
406 B
C#

using System;
using System.Threading.Tasks;
namespace Server.Services.Auth;
public interface ISessionRegistry
{
void Bind(Guid connectionId, ulong accountId, string token);
void Unbind(Guid connectionId);
bool IsAuthenticated(Guid connectionId);
bool TryGetAccountId(Guid connectionId, out ulong accountId);
bool TryGet(Guid connectionId, out ulong accountId, out string token);
}