🎓 Learning App

Welcome to Learning App! 👋

Please sign in to access your dashboard

How Authentication Works:

  1. Click "Sign In" or "Sign Up" in the header
  2. Clerk shows a beautiful modal (no coding needed!)
  3. Enter your email or use Google/GitHub
  4. Clerk handles everything (passwords, sessions, cookies)
  5. You're logged in! 🎉

🏗️ Authentication Flow:

1
Middleware (middleware.ts): Runs on every request, checks cookies
2
ClerkProvider (layout.tsx): Wraps app, provides auth context
3
Auth Components: SignedIn/Out show different content
4
Protected Routes: Use auth() to check server-side