auth0 avatar

Auth0 Fastify Api

If you're building a REST API with Fastify and need to validate JWT access tokens from Auth0, this handles the JWT verification middleware so you don't have to roll your own. It's specifically for stateless API authentication where your frontend or mobile app sends a Bearer token with each request. The setup is straightforward: register the plugin with your Auth0 domain and API audience, then protect routes with `fastify.requireAuth()`. One gotcha worth knowing upfront is that you need to create an API resource in Auth0, not just an Application, and clients must request access tokens with the correct audience parameter. If you're building a server-rendered web app with sessions instead, you want the regular auth0-fastify skill, not this one.

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

Install

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

Installs into .claude/skills of the current project.

Files

If you're building a REST API with Fastify and need to validate JWT access tokens from Auth0, this handles the JWT verification middleware so you don't have to roll your own. It's specifically for stateless API authentication where your frontend or mobile app sends a Bearer token with each request. The setup is straightforward: register the plugin with your Auth0 domain and API audience, then protect routes with `fastify.requireAuth()`. One gotcha worth knowing upfront is that you need to create an API resource in Auth0, not just an Application, and clients must request access tokens with the correct audience parameter. If you're building a server-rendered web app with sessions instead, you want the regular auth0-fastify skill, not this one.

Browse the repository on GitHub

Sponsors

Details

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

More from auth0/agent-skills

All 23
1aj-geddes avatargrpc-service-developmentaj-geddes/useful-ai-promptsBuild high-performance gRPC services with Protocol Buffers, bidirectional streaming, and microservice communication. Use when building gRPC servers, defining se532skills.sh installs
2yoanbernabeu avatarsupabase-helpyoanbernabeu/supabase-pentest-skillsQuick reference for all Supabase security audit skills with usage examples and command overview.525skills.sh installs
3firebase avatarfirebase-ai-logic-basicsfirebase/skillsfirebase ai logic basics511skills.sh installs
4yoanbernabeu avatarsupabase-extract-service-keyyoanbernabeu/supabase-pentest-skillsCRITICAL - Detect if the Supabase service_role key is leaked in client-side code. This is a P0 severity issue.500skills.sh installs
5aj-geddes avatardatabase-performance-debuggingaj-geddes/useful-ai-promptsDebug database performance issues through query analysis, index optimization, and execution plan review. Identify and fix slow queries.499skills.sh installs
6davila7 avatarapi-documentation-generatordavila7/claude-code-templatesGenerate comprehensive, developer-friendly API documentation from code, including endpoints, parameters, examples, and best practices493skills.sh installs