FE-M0-07 · Clients, proxy.ts, sign-in and sign-out
ID FE-M0-07 · Level L0 · Run order row 25
apps/web has its Supabase clients (D22), proxy.ts checking every session with getClaims() (D13), the sign-in page and sign-out; it builds; committed.
Before
Section titled “Before”FE-M0-06 is Done. You are on the branch web/auth.
1 · Copy this step's files
Section titled “1 · Copy this step's files”cp -R ~/opleet-v2/packs/fe-pack-b/FE-M0-07/. .git status --short2 · Typecheck, lint and build
Section titled “2 · Typecheck, lint and build”pnpm --filter web typecheckpnpm lintpnpm --filter web build3 · Commit
Section titled “3 · Commit”git add -A apps/webgit commit -m "feat(web): sign in and sign out with Supabase"Expect
Section titled “Expect”- Block 1: M for apps/web/app/page.tsx and apps/web/components/opleet/Icon.tsx; ?? for apps/web/app/login/, apps/web/lib/auth/, apps/web/lib/supabase/ and apps/web/proxy.ts.
- Block 2: no type errors; “No fixes applied.”; the build lists ƒ / and ○ /login, then “ƒ Proxy (Middleware)”.
- Block 3: the commit line with 9 files changed.
git status --shortExpect: Prints nothing.
If it fails
Section titled “If it fails”Anything in block 2 fails: stop and paste the first error.
git reset --hardgit clean -fd apps/webBefore the commit. After it: git reset --hard HEAD~1.
Not run yet.