Add random 4-digit TV token per child for obfuscated TV URLs

Each child is assigned a unique permanent tv_token on creation. The TV
dashboard URL (/tv/:tvToken) and WebSocket (/ws/:tvToken) now use this
token instead of the internal DB ID. Existing children are backfilled
on startup. README updated to reflect the change.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
derekcandClaude Sonnet 4.6 committed 2026-03-10 22:53:26 -07:00
1 parent 4bd9218bf5
commit 68a5e9cb4f
7 files changed
+52 -12

No files matched your search

+1
View File
@@ -23,5 +23,6 @@ class ChildOut(BaseModel):
is_active: bool
color: str
strikes: int = 0
tv_token: int | None = None
model_config = {"from_attributes": True}