← ClaudeAtlas

create-auth-skilllisted

Skill for creating auth layers in TypeScript/JavaScript apps using Better Auth.
aiskillstore/marketplace · ★ 329 · API & Backend · score 79
Install: claude install-skill aiskillstore/marketplace
# Create Auth Skill Guide for adding authentication to TypeScript/JavaScript applications using Better Auth. **For code examples and syntax, see [better-auth.com/docs](https://better-auth.com/docs).** --- ## Decision Tree ``` Is this a new/empty project? ├─ YES → New project setup │ 1. Identify framework │ 2. Choose database │ 3. Install better-auth │ 4. Create auth.ts + auth-client.ts │ 5. Set up route handler │ 6. Run CLI migrate/generate │ 7. Add features via plugins │ └─ NO → Does project have existing auth? ├─ YES → Migration/enhancement │ • Audit current auth for gaps │ • Plan incremental migration │ • See migration guides in docs │ └─ NO → Add auth to existing project 1. Analyze project structure 2. Install better-auth 3. Create auth config 4. Add route handler 5. Run schema migrations 6. Integrate into existing pages ``` --- ## Installation **Core:** `npm install better-auth` **Scoped packages (as needed):** | Package | Use case | |---------|----------| | `@better-auth/passkey` | WebAuthn/Passkey auth | | `@better-auth/sso` | SAML/OIDC enterprise SSO | | `@better-auth/stripe` | Stripe payments | | `@better-auth/scim` | SCIM user provisioning | | `@better-auth/expo` | React Native/Expo | --- ## Environment Variables ```env BETTER_AUTH_SECRET=<32+ chars, generate with: openssl rand -base64 32> BETTER_AUTH_URL=http://localhost:3000 DATABASE_URL=<your database connectio