learning_ai_common_plat/packages/fastify-auth/src/index.ts
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

9 lines
222 B
TypeScript

export { createAuthMiddleware } from './auth.js';
export { createRequestContext } from './request-context.js';
export type {
AuthPayload,
JwtPayload,
FastifyAuthOptions,
RequestContextOptions,
} from './types.js';