better-auth-ts

Configure Better Auth for TypeScript apps with email, OAuth, JWT, and sessions.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/abdulahad139/Todoapp-HackathonII --skill better-auth-ts-abdulahad139
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-ts
Source: https://github.com/abdulahad139/Todoapp-HackathonII/tree/main/.claude/skills/better-auth-ts
Command: npx skills add https://github.com/abdulahad139/Todoapp-HackathonII --skill better-auth-ts-abdulahad139

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Better Auth TypeScript/JavaScript authentication library helps developers implement robust authentication and authorization across frontend and backend TypeScript projects, including Next.js, React, and Express, with support for email/password, OAuth, JWT, sessions, 2FA, and magic links.

Core Features & Use Cases

  • Supports multi-provider authentication (email/password, social OAuth) and session management for secure apps.
  • Offers Next.js 16 compatible templates and proxy patterns for seamless server/client integration.
  • Provides adaptable adapters (Prisma, Drizzle, Kysely, MongoDB, direct DB) to fit various data layers and stacks.

Quick Start

Install better-auth, configure your database adapter, and initialize the library to start securing 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 add authentication to a Next.js TypeScript app?

To add authentication, install the library, configure your database adapter, and initialize it to enable email/password, OAuth, JWT, sessions, 2FA, and magic links for Next.js, React, or Express.

Can I use Prisma or Drizzle for authentication session storage?

Yes, authentication session storage supports adaptable adapters including Prisma, Drizzle, Kysely, MongoDB, and direct database connections to fit various data layers and technology stacks.

Does TypeScript authentication support 2FA and magic links?

TypeScript authentication supports 2FA and magic links through a plugin-based extension system, allowing you to add multi-provider OAuth, email/password, and secure session management to your application.

What is the best way to handle OAuth and JWT in an Express TypeScript backend?

The best way to handle OAuth and JWT in an Express TypeScript backend is using a modular authentication library that provides server templates, multi-provider OAuth integration, and robust session management.

Are there Next.js 16 compatible templates for server and client auth integration?

Yes, Next.js 16 compatible templates and proxy patterns are provided for seamless server and client integration, supporting modular adapters and plugin-based extensions for multisite setups.

Why set up modular adapters for TypeScript authentication?

Modular adapters are set up for TypeScript authentication to connect your auth layer with various databases like Prisma, Drizzle, Kysely, or MongoDB, fitting your existing data layer without lock-in.