updating current state, phase 3 is done
This commit is contained in:
parent
a3685a9e68
commit
1699f78f0b
1 changed files with 10 additions and 10 deletions
|
|
@ -89,16 +89,16 @@ Each phase produces a working increment. Nothing is built speculatively.
|
|||
**Goal:** Users can log in via Google or GitHub and stay logged in.
|
||||
**Done when:** Better Auth session is validated on protected routes; unauthenticated users are redirected to login; user row is created on first social login.
|
||||
|
||||
- [ ] Install `better-auth` and configure with Drizzle adapter + PostgreSQL
|
||||
- [ ] Mount Better Auth handler on `/api/auth/*` in `app.ts`
|
||||
- [ ] Configure Google and GitHub social providers
|
||||
- [ ] Run Better Auth CLI to generate and migrate auth tables (user, session, account, verification)
|
||||
- [ ] Add session validation middleware for protected API routes
|
||||
- [ ] Frontend: install `better-auth/react` client
|
||||
- [ ] Frontend: login page with Google + GitHub buttons
|
||||
- [ ] Frontend: TanStack Router auth guard using `useSession`
|
||||
- [ ] Frontend: TanStack Query `api.ts` sends credentials with every request
|
||||
- [ ] Unit tests for session middleware
|
||||
- [x] Install `better-auth` and configure with Drizzle adapter + PostgreSQL
|
||||
- [x] Mount Better Auth handler on `/api/auth/*` in `app.ts`
|
||||
- [x] Configure Google and GitHub social providers
|
||||
- [x] Run Better Auth CLI to generate and migrate auth tables (user, session, account, verification)
|
||||
- [x] Add session validation middleware for protected API routes
|
||||
- [x] Frontend: install `better-auth/react` client
|
||||
- [x] Frontend: login page with Google + GitHub buttons
|
||||
- [x] Frontend: TanStack Router auth guard using `useSession`
|
||||
- [x] Frontend: TanStack Query `api.ts` sends credentials with every request
|
||||
- [x] Unit tests for session middleware
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue