learning_ai_clock/backend/src/lib/auth.ts
saravanakumardb1 f10b83c122 feat(backend): scaffold product-specific Fastify backend (port 4011)
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
2026-03-01 20:39:08 -08:00

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';