fix: wrap authPlugin with fastify-plugin to expose decorator to child contexts
The authenticate decorator was encapsulated and invisible to route handlers
registered in child scopes, causing "request.server.authenticate is not a function".
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
| ... | @@ -27,6 +27,7 @@ | ... | @@ -27,6 +27,7 @@ |
| "@supabase/supabase-js": "^2.49.1", | "@supabase/supabase-js": "^2.49.1", | ||
| "drizzle-orm": "^0.38.3", | "drizzle-orm": "^0.38.3", | ||
| "fastify": "^5.1.0", | "fastify": "^5.1.0", | ||
| "fastify-plugin": "^5.1.0", | |||
| "jsonwebtoken": "^9.0.2", | "jsonwebtoken": "^9.0.2", | ||
| "nanoid": "^5.0.9", | "nanoid": "^5.0.9", | ||
| "postgres": "^3.4.5", | "postgres": "^3.4.5", | ||
| ... | ... |
Please register or sign in to comment