Auth CN is a collection of shadcn components that install Better Auth with a single command.
By: Mr Uprizing
Auth CN is a collection of authentication components and configurations specifically designed for Better Auth. Install them directly into your project using the shadcn registry system.
Each component is built with security and accessibility in mind, giving you a solid starting point for your authentication needs.
How it works
Add the Auth CN registry to your components.json:
components.json
Then install components:
install.sh
Customize them to fit your needs, and deploy. All components are fully customizable since the code lives in your project.
page.tsx
What you get
Production-ready components built with shadcn/ui. Sign-in, sign-up, and more. Mobile-responsive. Accessible.
Better Auth configured and ready to use. Type-safe. Secure. No configuration headaches.
Database setup for MySQL, PostgreSQL, or SQLite. Schema generated automatically. Migrations handled.
database.sh
No abstractions, no hidden logic
Better Auth handles the authentication logic. shadcn/ui provides the visual components. You own the code completely.
No npm packages hiding complexity. No vendor lock-in. No monthly fees. Just code that lives in your project.
What developers are saying
Developers like Nihar Ranjan Das and the jQueryScript team have written about Auth CN, explaining how it provides production-ready authentication without the complexity of building from scratch or the lock-in of Auth0 and Clerk. These articles dive deeper into real-world implementations and comparisons with other authentication solutions.