• 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
public Loading commit data...
src Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.oxlintrc.json Loading commit data...
README.md Loading commit data...
index.html Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
tsconfig.app.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.node.json Loading commit data...
vite.config.ts Loading commit data...