Back to skills

auth0-fastify

security

Adds session-based authentication to Fastify web applications using the @auth0/auth0-fastify SDK. It registers login, logout, and callback routes automatically, and provides helpers to check sessions,

Setup & Installation

npx skills add https://github.com/auth0/auth0-fastify --skill auth0-fastify
or paste the link and ask your coding assistant to install it
https://github.com/auth0/auth0-fastify
View on GitHub

What This Skill Does

Adds session-based authentication to Fastify web applications using the @auth0/auth0-fastify SDK. It registers login, logout, and callback routes automatically, and provides helpers to check sessions, get user profiles, and retrieve access tokens. For stateless API-only setups, there's a separate auth0-fastify-api skill. It handles the full OAuth redirect flow, session management, and token refresh in a single Fastify plugin registration, so you don't have to wire up callback routes and cookie encryption yourself.

When to use it

  • Working with auth0 fastify functionality
  • Implementing auth0 fastify features
  • Debugging auth0 fastify related issues