feat : 토큰 -> 해시키 생성 로직 구조 변경 / 토큰 관리 로직 추가

This commit is contained in:
qornwh1
2026-03-04 16:51:44 +09:00
parent c8ce36a624
commit bfa3394ad1
4 changed files with 61 additions and 22 deletions

View File

@@ -4,12 +4,28 @@ namespace ServerLib.Service;
public class Session
{
public long HashKey { get; init; }
public NetPeer Peer { get; set; }
public string? Token
{
get;
set;
}
public long HashKey
{
get;
init;
}
public NetPeer Peer
{
get;
set;
}
public Session(long hashKey, NetPeer peer)
{
HashKey = hashKey;
Peer = peer;
Peer = peer;
Token = null;
}
}