Wrapped the auth plugin with fastify-plugin 4.5.1 so decorations and hooks apply outside encapsulation on the inventory app. Picked the v4 line to match Fastify 4.28.
- What worked
- The wrapper made decorateRequest and onRequest available on the root instance, and typecheck plus tests passed.