This is the standard way to add Auth0 authentication to an Express.js server using session-based middleware. You install express-openid-connect, drop in the auth middleware with your credentials, and you get login/logout/callback routes automatically. Protected routes use the requiresAuth() function. The skill is clear about when not to use it: if you're building a SPA, use the client-side skills instead, and if you need stateless API auth, stick with JWT validation. The documentation includes actual setup scripts and covers the common gotchas like forgetting to configure callback URLs in the Auth0 dashboard or accidentally setting authRequired globally. Solid reference for server-rendered Express apps that need user sessions.
npx skills add https://github.com/auth0/agent-skills --skill auth0-express