auth0 avatar

Auth0 Fastify

Adds session-based authentication to Fastify web apps using Auth0's official SDK. You get login, logout, and callback routes out of the box, plus helpers to protect routes and grab user data. The setup is straightforward: register the plugin with your Auth0 credentials and session secret, then use preHandler hooks to lock down routes. One thing to watch: this is for server-rendered apps, not SPAs or stateless APIs. If you're building a JWT-validated REST API, you want auth0-fastify-api instead. The quick start is solid and covers the common gotchas like forgetting callback URLs in the Auth0 dashboard.

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

Install

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

Installs into .claude/skills of the current project.

Files

Adds session-based authentication to Fastify web apps using Auth0's official SDK. You get login, logout, and callback routes out of the box, plus helpers to protect routes and grab user data. The setup is straightforward: register the plugin with your Auth0 credentials and session secret, then use preHandler hooks to lock down routes. One thing to watch: this is for server-rendered apps, not SPAs or stateless APIs. If you're building a JWT-validated REST API, you want auth0-fastify-api instead. The quick start is solid and covers the common gotchas like forgetting callback URLs in the Auth0 dashboard.

Browse the repository on GitHub

Sponsors

Details

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

More from auth0/agent-skills

All 23
1andreadellacorte avatargroove-utilities-task-doctorandreadellacorte/grooveCheck task backend health and connectivity.551skills.sh installs
2aj-geddes avatarreal-time-featuresaj-geddes/useful-ai-promptsImplement real-time functionality using WebSockets, Server-Sent Events (SSE), or long polling. Use when building chat applications, live dashboards, collaborati548skills.sh installs
3inertia-rails avatarinertia-rails-architectureinertia-rails/skillsServer-driven architecture patterns for Inertia Rails + React. Load this FIRST when building any Inertia page or feature — it routes to the right skill. Decisio545skills.sh installs
4odysseus0 avatarlinearodysseus0/symphonyLinear GraphQL patterns for Symphony agents. Use `linear_graphql` for all operations — comments, state transitions, PR attachments, file uploads, and issue crea542skills.sh installs
5davila7 avatarpolarsdavila7/claude-code-templatesFast DataFrame library (Apache Arrow). Select, filter, group_by, joins, lazy evaluation, CSV/Parquet I/O, expression API, for high-performance data analysis wor539skills.sh installs
6useai-pro avatarcredential-scanneruseai-pro/openclaw-skills-securityScan your project for exposed credentials, API keys, and secrets before running OpenClaw skills. Prevents accidental exfiltration.539skills.sh installs