Authentication Service
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user