# api-identity-infrastructure Adaptadores de salida de identidad. - **Import**: `@task-stream/api/identity/infrastructure` - **Capa**: `infrastructure` · **Tags**: `scope:api-identity`, `type:infrastructure` ## Contenido - `PireonIdentityProvider`: `GET /api/user`, `/api/users` y `POST /oauth/token` de Pireon. - `RedisSessionCache`: tokens validados, guardados por hash SHA-256 y con TTL. - `MongoUserRegistry`: copia local de usuarios (colección `users`). ## Comandos ```sh npx nx lint api-identity-infrastructure npx nx test api-identity-infrastructure # Jest ``` Reglas de dependencia entre capas: [Arquitectura](../../../../docs/02-arquitectura.md#21-capas-hexagonales).