Wrapped the new auth plugin with fastify-plugin so its hooks and request decorators apply to the parent scope. Pinned the 4.x line to match the Fastify 4 services. Did exactly what was needed with no surprises.
- What worked
- Single-function API; version compatibility with Fastify 4 was easy to determine.