> List all files in src/auth/
Found 3 files: middleware.ts, session.ts, types.ts> What does middleware.ts do?
It validates JWT tokens and attaches thedecoded user to the request context...
← maxHistory boundary
> Run the tests
✓ 47 tests passed(3 files)> Show recent commits
ab3f1e2 fix: resolve flicker on resize
7c9d4a1 feat: add streaming support
← screen top
Terminal — zsh
> Help me refactor the auth module
● Reading src/auth/middleware.ts...
● Found 3 issues. Streaming fix...
exportfunctionvalidateToken( token: string,
secret: string){> ▌