Common components and utilities for the tickets microservices project.
This package contains shared code, utilities, and components that are used across different microservices in the tickets system. It helps maintain consistency and reduces code duplication.
npm install @tickets/common
- Common error handling
- Authentication middleware
- Input validation
- Shared interfaces and types
- Event definitions
- Common utilities
import { currentUser, requireAuth } from '@tickets/common';
// Use middleware in your routes
app.use(currentUser);
app.use(requireAuth);
This project is licensed under the ISC License.