How juansilv19/tasks-nextjs-supabase works
This is a Next.js application with Supabase-backed authentication and a dashboard; the repository name suggests task management, but the sampled sources and generic README do not establish task workflows. The visible user flow is authentication forms submitting credentials to server actions, with Supabase managing sessions and an email callback confirming OTPs before redirecting. The profile lookup provides a separate authenticated-user data layer. Dashboard behavior and password recovery implementation are not shown in the sampled source, so their wiring is left unspecified.
Main entry points: server.ts Server client · AuthForm.tsx Auth selector · get-user.ts Profile lookup · page.tsx Home page
Components 17
Application UI
- Home page
app/page.tsx - Auth selector
components/auth/AuthForm.tsx - Sign-in form
components/auth/SignInForm.tsx - Sign-up form
components/auth/SignUpForm.tsx - Recovery form
components/auth/RecoverPasswordForm.tsx - Dashboard
app/dashboard/page.tsx
Authentication
- Login action
actions/auth/auth.ts - Signup action
actions/auth/auth.ts - OTP callback
app/api/auth/callback/route.ts - Profile lookup
actions/auth/get-user.ts
Supabase access
- Session proxy
proxy.ts - Session refresh
lib/supabase/proxy.ts - Server client
lib/supabase/server.ts - Browser client
lib/supabase/client.ts
Other components
- Visitor
- Supabase Auth
- Profiles table
Connections 17
- Visitor → Home page: opens
- Home page → Auth selector: renders
- Auth selector → Sign-in form: selects
- Auth selector → Sign-up form: selects
- Auth selector → Recovery form: selects
- Sign-in form → Login action: submits credentials
- Sign-up form → Signup action: submits details
- Login action → Server client: creates client
- Signup action → Server client: creates client
- OTP callback → Server client: creates client
- Server client → Supabase Auth: auth requests
- Supabase Auth → Server client: session cookies
- Session proxy → Session refresh: refreshes session
- Session refresh → Supabase Auth: updates session
- Profile lookup → Server client: creates client
- Profile lookup → Profiles table: reads profile
- Browser client → Supabase Auth: auth requests