auth0-fastify
Adds session-based authentication to Fastify web applications using the @auth0/auth0-fastify SDK.
Setup & Installation
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
- Adding login and logout to a Fastify web app without writing OAuth flows by hand
- Protecting specific routes so only authenticated users can access them
- Retrieving the logged-in user's profile to display on a dashboard
- Getting an access token from the session to call a downstream API
- Setting up callback handling for Auth0's hosted login page in Fastify
Similar Skills
best-practices
A checklist of modern web development standards covering HTTPS, CSP headers, input sanitization, deprecated API avoidance, and HTML validity.
auth0-android
Adds authentication to native Android apps using the Auth0 SDK.
auth0-angular
Adds authentication to Angular apps using the @auth0/auth0-angular SDK.
auth0-aspnetcore-api
Adds JWT access token validation to ASP.
