better-auth-ts

Automate secure user authentication and session management for TypeScript applications.

2|Updated Dec 7, 2025
One-click install
npx skills add https://github.com/ayesha-aziz123/Hackathon_II --skill better-auth-ts-ayesha-aziz123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-ts
Source: https://github.com/ayesha-aziz123/Hackathon_II/tree/main/Evolution-Todo/.claude/skills/better-auth-ts
Command: npx skills add https://github.com/ayesha-aziz123/Hackathon_II --skill better-auth-ts-ayesha-aziz123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Better Auth-ts provides a framework-agnostic solution for secure user authentication and session management in TypeScript applications, reducing boilerplate and improving security practices.

Core Features & Use Cases

  • Comprehensive auth: supports email/password, OAuth, JWT, sessions, 2FA, and magic links across Next.js, Express, and React apps.
  • Plug-and-play adapters: works with Drizzle, Prisma, Kysely, MongoDB, and other databases via official adapters.
  • Real-world scenarios: easily implement sign-in/sign-up flows, passwordless login, and role-based access control in modern web apps.

Quick Start

Install and configure Better Auth in your project. Then create a server config (e.g., src/lib/auth.ts) with a compatible database adapter, enable email/password (and optional providers), run migrations or generate schemas as needed, and start your app.

Frequently Asked Questions about better-auth-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up authentication with email, password, and OAuth in a Next.js app?

Better Auth-ts provides framework-agnostic authentication setup for Next.js by configuring a server auth file with a compatible database adapter (Drizzle, Prisma, Kysely, or MongoDB), enabling email/password and OAuth providers, running migrations, then integrating the auth client into your app.

Does Better Auth-ts support JWT and session-based authentication together?

Yes, Better Auth-ts supports both JWT and session-based authentication models. You configure your preferred method in the server auth setup alongside optional features like 2FA and magic links, adapting to your app's security requirements.

What databases work with TypeScript authentication libraries?

Better Auth-ts works with Drizzle, Prisma, Kysely, MongoDB, and other databases through official adapters. Choose your ORM, install the corresponding adapter, and configure it in your auth server file to enable seamless database integration.

Can I implement passwordless login and role-based access control in Express?

Better Auth-ts supports passwordless login via magic links and role-based access control across Express, Next.js, and React stacks. Configure magic links and role definitions in your auth server setup to enforce access policies in your app.

Do I need to handle database migrations separately for authentication?

Better Auth-ts requires you to run migrations or generate schemas based on your chosen database adapter (Prisma, Drizzle, Kysely, MongoDB). The adapter documentation guides schema generation; then your app can start using auth immediately.

Related Skills