User Flow – Designing the Auth Experience
Adding accounts is your first big, risky feature – get it wrong and people can't get into your app, or worse, see each other's data. So you'll slow down a little: design the whole experience first, then (in the next lessons) build it on a branch and test it on a preview before it touches your live site.
This lesson is about thinking in experiences – not "add a login button" but "how does a new user feel confident creating an account, and land somewhere useful?"
1. Understand auth UX patterns
Great auth is almost invisible – it just works. Keep these principles in mind:
- Clarity: users always know what's happening and what to do next.
- Trust: clear, familiar sign-in builds confidence.
- Efficiency: the fewest steps to get in (offer social login).
- Recovery: obvious paths when something goes wrong.
- Continuity: after signup, land somewhere that shows value fast (onboarding).
Outcome: You understand the patterns of a great auth experience.
2. Create a branch for your auth work
Auth is exactly the kind of feature worth building on a branch and testing on a Vercel preview before merging to main (remember the Git Workflow lesson). Let Claude set that up.
Outcome: You're on a dedicated branch for building auth safely.
3. Map the authentication journey
Before building, map the full journey so nothing is missed. Have Claude write it up as a short design doc in your docs folder.
Outcome: You have a clear map of every auth state and transition.
4. Plan the build
Finish by shaping the build with Claude in plan mode – you'll execute it in the next lesson.
Outcome: You have a plan for building auth, ready to execute next lesson.