
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-codeInstalls 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 GitHubSponsors
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- Auth0 Expo555
- Auth0 Fastify555
- Auth0 Aspnetcore Api490
- Auth0 Android482
- Auth0 Swift477
- Express Oauth2 Jwt Bearer469
- Auth0 Fastapi Api461
- Auth0 Spa Js434
- Auth0 Flask411
- Acul Screen Generator393
- Auth0 Java Mvc Common388
- Auth0 Springboot Api387
- Auth0 Quickstart2.7K
- Auth0 Nextjs1.6K
- Auth0 React1.5K
- Auth0 React Native963
- Auth0 Express816
- Auth0 Mfa811
- Auth0 Angular762
- Auth0 Vue727
- Auth0 Migration687
- Auth0 Nuxt594