Technical & DevelopmentIntermediate
auth0-fastify-api
Secure Fastify API endpoints with JWT Bearer token validation.
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/auth0/agent-skills --skill auth0-fastify-apinpx skills add https://github.com/auth0/agent-skills --skill auth0-fastify-apiOr paste this URL into your assistant to install:
Overview
What This Skill Does
Protect Fastify API endpoints with JWT access token validation using @auth0/auth0-fastify-api.
Application
When to use this Skill
- Adding secure Auth0 authentication to a Fastify api application
- Implementing standard login, logout, and token authentication flows in Fastify api
- Managing user session state and securing frontend/backend routes using Auth0 SDKs
Documentation
Show Skills.md file
Auth0 Fastify API Integration
Protect Fastify API endpoints with JWT access token validation using @auth0/auth0-fastify-api.
Prerequisites
- Fastify API application (v5.x or newer)
- Node.js 20 LTS or newer
- Auth0 API configured (not Application - must be API resource)
- If you don't have Auth0 set up yet, use the
auth0-quickstartskill first
When NOT to Use
- Server-rendered web applications - Use
@auth0/auth0-fastifyfor session-based auth - Single Page Applications - Use
auth0-react,auth0-vue, orauth0-angularfor client-side auth - Next.js applications - Use
auth0-nextjsskill - Mobile applications - Use
auth0-react-nativefor React Native/Expo
Quick Start Workflow
1. Install SDK
Lines 1 - 25 of 169
Recommendations