learning_ai_common_plat/packages/fastify-auth/package.json
saravanakumardb1 f61a1f0b04 feat(fastify-auth): create @bytelyst/fastify-auth package with JWT auth + request context
- createAuthMiddleware(): RS256 JWKS + HS256 fallback (parameterized)
- createRequestContext(): productId validation + getUserId()
- Fastify request type augmentation for jwtPayload
- 15 tests passing
2026-03-20 07:30:53 -07:00

37 lines
753 B
JSON

{
"name": "@bytelyst/fastify-auth",
"version": "0.1.0",
"description": "JWT auth middleware + request context for Fastify product backends",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"clean": "rm -rf dist"
},
"peerDependencies": {
"fastify": ">=5.0.0",
"jose": ">=5.0.0"
},
"dependencies": {
"@bytelyst/errors": "workspace:*"
},
"devDependencies": {
"fastify": "^5.2.1",
"jose": "^6.0.8",
"typescript": "^5.7.3",
"vitest": "^3.0.5"
},
"files": [
"dist"
]
}