- Add requireAuth middleware using Better Auth session validation - Apply to all game routes (start, answer) - Unauthenticated requests return 401 |
||
|---|---|---|
| .. | ||
| authMiddleware.ts | ||
| errorHandler.ts | ||
- Add requireAuth middleware using Better Auth session validation - Apply to all game routes (start, answer) - Unauthenticated requests return 401 |
||
|---|---|---|
| .. | ||
| authMiddleware.ts | ||
| errorHandler.ts | ||