The problem.
Your job as a software engineer is to deliver code that works. Agents have gotten remarkably good at writing plausible looking code. And since current PR review agents are not capable of running the code that they review, they can't tell whether code works or just looks like it does.
Issue found:
TokenRefreshMiddlewaresilently swallows expired tokens instead of triggering a re-auth flow, because it catchesjwt.ExpiredSignatureErrorand returnsNonewithout clearing the session cookie.This PR should not be merged until the middleware propagates expiry to the session layer. The fix is straightforward: replace the bare
return Nonewithrequest.session.clear()followed by a redirect to/auth/login.What happens
▸ Detailed evidence