-
Aryan Noshirvnai authored
VITE_DEV_ACCESS_TOKEN/VITE_DEV_REFRESH_TOKEN was a single refresh token baked into .env and shared across every consumer (every dev session, every test run, every stray curl). Refresh tokens are single-use/rotating by design - the instant any one consumer used it, the backend rotated it and the file's copy went dead for everyone else, with no way to keep a static file in sync with a rotating secret. Confirmed live in the backend log: the real browser session was stuck looping GET /auth/me -> 401 -> POST /auth/refresh -> 401 on every page load, which is what "still very slow" actually was - not a performance bug, an auth bug that looked like one. Regenerating the pair (done twice already this session) only delays the same failure. Removed the mechanism entirely: isAuthenticated's initial value now comes straight from whatever's already in localStorage, exactly like a real logged-in user. Real username/password login (shipped earlier today) replaces the dev shortcut with no such failure mode - log in with dev-test-user / StaxDev2026! instead. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
9d69f811