kcar 33d5ebf571
Some checks failed
tlsync-ci-deploy / build-deploy (push) Has been cancelled
feat: validate short-lived HS256 JWT auth tokens
- Add src/server/auth.ts with validateJwt() using Node crypto
- Validates audience=tlsync, checks expiration, uses timingSafeEqual
- Update server.bun.ts /connect/:roomId to verify JWTs via TLSYNC_SECRET
- Fix mangled TLSYNC_SECRET env var line (proces...CRET → process.env.TLSYNC_SECRET)
- Add 7 unit tests (bun:test): valid, expired, wrong aud, wrong secret, malformed, empty, missing exp
- Smoke tested: valid JWT → 101, no token → 401, bad token → 401
2026-05-28 18:02:33 +01:00
2026-05-27 23:24:29 +01:00
2025-08-23 13:04:42 +00:00
2025-08-23 14:06:40 +00:00
2025-08-23 13:04:42 +00:00
2025-08-23 14:06:40 +00:00
2025-08-23 13:04:42 +00:00
2025-08-23 13:04:42 +00:00
2025-08-23 13:04:42 +00:00

The file is empty.
Description
TLDraw sync server (Bun + TypeScript) for Classroom Copilot — real-time collaborative whiteboard room management
Readme 290 KiB
Languages
TypeScript 99.6%
Dockerfile 0.4%