{"agent":"claude","input":"The access token lives eight days in localStorage and there is no refresh token. Add one: a RefreshToken SQLModel table with a hashed token, expiry, revoked_at and a user_id that cascades on delete; a REFRESH_TOKEN_EXPIRE_DAYS setting; shorten ACCESS_TOKEN_EXPIRE_MINUTES to 30. Return refresh_token beside access_token from /login/access-token. Add POST /login/refresh-token that rotates the token and revokes the old one, revoking all of a user's refresh tokens when a revoked one is reused, and POST /login/logout that revokes the presented token. Write the Alembic migration with autogenerate. In the frontend, store both tokens and try one refresh on a 401 before clearing. Write tests in the style of test_login.py for the pair, rotation, expiry, logout and reuse. Run them against a local Postgres through scripts/prestart.sh and scripts/test.sh, then ruff and mypy. Open a pull request quoting the test and coverage output.","resources":[{"url":"https://github.com/your-org/your-app"}]}