Auth CN

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:

code-editor

components.json

{
  "registries": {
    "@auth-cn": "https://auth.uprizing.me/r/{name}.json"
  }
}

Then install components:

code-editor

install.sh

npx shadcn@latest add @auth-cn/sign-in-01
npx shadcn@latest add @auth-cn/postgres

Customize them to fit your needs, and deploy. All components are fully customizable since the code lives in your project.

code-editor

page.tsx

import { SignIn01 } from '@/components/auth/sign-in-01'

export default function LoginPage() {
  return (
    <div className="min-h-screen flex items-center justify-center">
      <SignIn01 />
    </div>
  )
}

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.

code-editor

database.sh

# Generate schema
pnpm dlx @better-auth/cli@latest generate

# Apply migrations
pnpm dlx @better-auth/cli@latest migrate

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 Daslink and the jQueryScript teamlink 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.