auth0 avatar

Auth0 Express

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.

skills.sh installs
816
GitHub stars
56
last updated
Aug 21, 2026

Install

$ npx -y skills add auth0/agent-skills --skill auth0-express --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/auth0/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from auth0/agent-skills

All 23
1softaworks avatarexcalidrawsoftaworks/agent-toolkitUse when working with *.excalidraw or *.excalidraw.json files, user mentions diagrams/flowcharts, or requests architecture visualization - delegates all Excalid815skills.sh installs
2intellectronica avatargog-cliintellectronica/agent-skillsUse this skill whenever the user wants to operate Google Workspace from the command line with gog/gogcli, including Gmail, Calendar, Drive, Docs, Sheets, Slides814skills.sh installs
3aj-geddes avatartechnical-specificationaj-geddes/useful-ai-promptsCreate detailed technical specifications, requirements documents, design documents, and system architecture specs. Use when writing technical specs, requirement811skills.sh installs
4auth0 avatarauth0-mfaauth0/agent-skillsUse when adding MFA or step-up authentication to an app — requiring users to verify with a second factor (TOTP, SMS, passkey, push) for login or before a sensit811skills.sh installs
5new-silvermoon avatargradle-build-performancenew-silvermoon/awesome-android-agent-skillsDebug and optimize Android/Gradle build performance. Use when builds are slow, investigating CI/CD performance, analyzing build scans, or identifying compilatio809skills.sh installs
6openclaw avatarsession-vieweropenclaw/agent-skillsRender Codex, Claude Code, OpenClaw, or Pi session JSONL transcripts as a searchable, shareable single-file HTML viewer.806skills.sh installs