Authentication Service

This commit is contained in:
dingo
2025-11-10 09:01:46 -05:00
parent 72bc097a71
commit a45cc41f4a
16 changed files with 1016 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
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);
}