Add backend/ directory with Fastify 5 + TypeScript ESM service: - Modules: timers, routines, households, shared-timers, webhooks (migrated from platform-service) - Cosmos containers: timers, routines, households, shared_timers, webhook_subscriptions, webhook_events - JWT verification via jose (matches platform-service issuer) - Shared @bytelyst/* packages via file: refs - 171 Vitest tests passing Update AGENTS.md: update backend integration section with product backend details
7 lines
292 B
TypeScript
7 lines
292 B
TypeScript
/**
|
|
* Re-export from @bytelyst/auth — shared across all services.
|
|
* JWT auth middleware — validates tokens issued by platform-service.
|
|
* Shares the same JWT_SECRET so it can verify without network calls.
|
|
*/
|
|
export { extractAuth, requireRole, type AuthPayload } from '@bytelyst/auth';
|