• Aryan Noshirvnai's avatar
    Remove the dev auto-login shortcut - it kept going stale and presenting as "site is slow" · 9d69f811
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    9d69f811
Name
Last commit
Last update
..
api Loading commit data...
assets Loading commit data...
components Loading commit data...
context Loading commit data...
hooks Loading commit data...
lib Loading commit data...
pages Loading commit data...
test Loading commit data...
App.tsx Loading commit data...
index.css Loading commit data...
main.tsx Loading commit data...