Revert "Login Setup"#9
Conversation
This reverts commit e62b105.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Caution Review failedThe pull request is closed. Note
|
| Cohort / File(s) | Summary |
|---|---|
Authentication API Routes src/app/api/auth/logout/route.ts |
Removed POST and GET handlers that called supabase.auth.signOut() and returned JSON responses or redirects. |
Authentication Pages & Layout src/app/auth/layout.tsx, src/app/auth/login/page.tsx |
Deleted AuthLayout wrapper and LoginPage module entirely. |
Authentication Components src/components/auth/LoginForm.tsx, src/components/auth/LoginPageUI.tsx |
Removed login form component handling email/password submission and the UI wrapper combining branding and login form. |
Core Pages src/app/page.tsx, src/app/dashboard/page.tsx |
Replaced home page's client-side auth checks and redirects with static landing page template; removed entire dashboard page that displayed authenticated user email and placeholder cards. |
Supabase Integration src/lib/supabase/client.ts, src/lib/supabase/server.ts |
Replaced environment variable validation with non-null assertions; removed error throwing on missing Supabase configuration. |
Middleware src/middleware.ts |
Removed auth-based user inspection, protected route redirects (/dashboard), and authenticated user redirects from home/auth pages. Simplified to basic user check without conditional logic. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
- PR
#5: Modifies Supabase integration in middleware and client/server utilities alongside auth API route handlers that this PR removes. - PR
#8: Introduces the auth routes, layout, login components, and middleware logic that this PR comprehensively removes.
Poem
🐰 A hop through the code, what do we find?
Auth flows and dashboards left far behind!
Static pages gleam, middleware is lean,
The simplest login system ever seen! ✨
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
revert-8-login-setup
Comment @coderabbitai help to get the list of available commands and usage tips.
Reverts #8
Summary by CodeRabbit
Release Notes