AI-powered code review that catches bugs, enforces patterns, and ships feedback in seconds — not hours.
This PR migrates from session-based auth to JWT with refresh token rotation. The access/refresh token split is correctly implemented. Main concern is error handling — several throw new Error() calls should use typed errors.
Errorhere leaks implementation details to the client. Consider using a typedAuthErrorclass with a stable error code (e.g.ERR_INVALID_REFRESH_TOKEN) that you can safely serialize in API responses without exposing internals.