Add account auth with websocket login/register and sessions

This commit is contained in:
Jage9
2026-02-24 22:03:10 -05:00
parent 1938f239e6
commit bf3bc90f2a
21 changed files with 1053 additions and 24 deletions

View File

@@ -13,6 +13,11 @@ class ClientConnection:
websocket: ServerConnection
id: str
authenticated: bool = False
user_id: str | None = None
username: str | None = None
role: str = "user"
session_token: str | None = None
nickname: str = "user..."
x: int = 20
y: int = 20