• Aryan Noshirvnai's avatar
    Remove phone-number login; auto-authenticate in dev · dccf71fe
    Aryan Noshirvnai authored
    Login.tsx and the /auth/request_code + /auth/login flow are gone. Dev
    doesn't need any login at all now: AuthContext auto-injects
    VITE_DEV_ACCESS_TOKEN/VITE_DEV_REFRESH_TOKEN on boot, gated behind Vite's
    own import.meta.env.DEV flag so this never activates in a production build
    regardless of whether those vars happen to be set.
    
    These are real, DB-backed tokens for a dedicated dev-test-user row (id 1)
    and a matching refresh_tokens entry on the dev server - not forged/fake -
    so the existing auto-refresh-on-401 in client.ts keeps them working
    indefinitely, same as it would for a real login.
    
    ProtectedRoute now shows an inline message instead of redirecting to a
    /login route that no longer exists, for whenever this runs without dev
    tokens configured (i.e. a real production build with no login flow yet).
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    dccf71fe
Name
Last commit
Last update
public Loading commit data...
src Loading commit data...
.env.example Loading commit data...
.gitignore 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...