Backend de template-saas - Workspace V2
Go to file
Adrian Flores Cortes ff7fc41449 feat(rls): add TenantContextInterceptor for PostgreSQL RLS
Implement global interceptor that sets tenant and user context
in PostgreSQL session before each authenticated request. This
enables Row Level Security policies to filter data automatically.

- Create TenantContextInterceptor in common/interceptors/
- Register as global interceptor in AppModule
- Call auth.set_current_tenant() and auth.set_current_user()
- Clear context after request completion to prevent leaks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:19:00 -06:00
__mocks__ Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00
src feat(rls): add TenantContextInterceptor for PostgreSQL RLS 2026-02-03 17:19:00 -06:00
.dockerignore Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00
.env.example [INTEGRACION] fix: Corregir credenciales en .env.example 2026-01-20 18:21:15 -06:00
.gitignore Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00
Dockerfile Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00
eslint.config.js Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00
jest.config.cjs Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00
package-lock.json fix: Resolve TypeORM entity type metadata issues 2026-01-25 06:36:18 -06:00
package.json fix: Resolve TypeORM entity type metadata issues 2026-01-25 06:36:18 -06:00
README.md Initial commit 2026-01-16 14:04:04 +00:00
tsconfig.json Initial commit - Backend de template-saas migrado desde monorepo 2026-01-16 08:07:11 -06:00

template-saas-backend-v2

Backend de template-saas - Workspace V2