Concept Flow - Protected routes with middleware
User Request URL
Middleware Intercepts Request
Check Authentication Token
Allow Access
Render Page
The middleware checks if the user is authenticated before allowing access to protected pages. If not authenticated, it redirects to login.
