TurboAuth is a project designed to provide flexible, scalable, and secure authentication for microservices. Built using NestJS and Turborepo, it allows developers to choose from multiple authentication implementations tailored to different architectures and performance requirements.
A key aspect of the project is its multi-protocol support. Developers can choose from different implementations based on their infrastructure needs:
- • TCP + Prisma ORM – Enables microservices to communicate securely using TCP connections while leveraging Prisma for database management.
- • TCP + Drizzle ORM – Combines lightweight ORM capabilities with TCP-based communication for optimized performance.
- • gRPC + Drizzle ORM – Utilizes gRPC for efficient and high-performance inter-service communication while maintaining a flexible database layer.
On the frontend, TurboAuth includes a Next.js implementation that handles encrypted session creation, ensuring security and user data protection.
By leveraging Turborepo, TurboAuth ensures efficient monorepo management, shared dependencies, and rapid development cycles. Its modularity makes it adaptable to various authentication strategies while maintaining consistency across microservices.
Key Features
- • Multiple Authentication Implementations: Choose between TCP + Prisma, TCP + Drizzle, or gRPC + Drizzle based on project requirements.
- • NestJS Microservice Architecture: Ensures a scalable and maintainable authentication system.
- • Next.js Frontend with Encrypted Sessions: Securely handles authentication sessions on the client side.
- • Turborepo for Monorepo Management: Optimizes development workflow and dependency sharing.
- • Production-Ready Deployment: Designed for easy integration and deployment in scalable microservice environments.