Add authentication to Next.js apps with Auth0 SDK, App Router middleware, and role-based authorization patterns.