Add Supabase JWT authorization middleware, config parsing, and WebSocket token verification

This commit is contained in:
2026-07-17 22:46:26 +04:00
parent 9c9632343d
commit a5d2ee32c6
8 changed files with 753 additions and 395 deletions
+2 -2
View File
@@ -27,5 +27,5 @@ X0GP_SEED_RESET=0
# PoC: skip auth, allow multiple clients on the same track.
X0GP_DEV_MODE=true
# Optional: override path(s) to dotenv files (colon-separated).
# X0GP_DOTENV=.env:./configs/local.env
# JWT secret (Supabase service role or JWT secret). Required when X0GP_DEV_MODE=false.
X0GP_JWT_SECRET=your-supabase-jwt-secret-here