it0/packages/shared/database/src
hailin 52b85f085e fix: decode JWT in middleware to populate req.user for RolesGuard
Kong validates the JWT but doesn't populate req.user on the backend.
The middleware now decodes the JWT payload to extract user info (id,
email, tenantId, roles) so RolesGuard can check role-based access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 00:25:32 -08:00
..
migrations fix: add missing columns to tenant schema template (runbook.updated_at, contact.role) 2026-02-22 00:18:46 -08:00
seeds Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
data-source.ts Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
database.module.ts fix: add SnakeNamingStrategy for TypeORM to match snake_case DB columns 2026-02-22 00:10:08 -08:00
index.ts fix: add SnakeNamingStrategy for TypeORM to match snake_case DB columns 2026-02-22 00:10:08 -08:00
run-migrations.ts Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
snake-naming.strategy.ts fix: add SnakeNamingStrategy for TypeORM to match snake_case DB columns 2026-02-22 00:10:08 -08:00
tenant-aware.repository.ts Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
tenant-context.middleware.ts fix: decode JWT in middleware to populate req.user for RolesGuard 2026-02-22 00:25:32 -08:00
tenant-provisioning.service.ts Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00