better-auth-ts

Implement TypeScript authentication with sessions, OAuth, and 2FA across web frameworks.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/shuremali02/The-Evolution-of-Todo---Mastering-Spec-Driven-Development---Cloud-Native-AI --skill better-auth-ts-shuremali02
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-ts
Source: https://github.com/shuremali02/The-Evolution-of-Todo---Mastering-Spec-Driven-Development---Cloud-Native-AI/tree/main/.claude/skills/better-auth-ts
Command: npx skills add https://github.com/shuremali02/The-Evolution-of-Todo---Mastering-Spec-Driven-Development---Cloud-Native-AI --skill better-auth-ts-shuremali02

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Better Auth TS provides a framework-agnostic, strongly-typed authentication solution for TypeScript apps, enabling consistent sign-in, session management, and secure auth flows.

Core Features & Use Cases

  • TypeScript-first authentication library for Next.js, React, Express, and Node backends.
  • Supports email/password, OAuth providers, JWT-based sessions, 2FA, and magic links with plug-in architecture.
  • Includes server/client templates and adapters for Drizzle, Prisma, Kysely, MongoDB, and more, enabling quick integration across stacks.

Quick Start

Install and configure the library in your project using the provided templates, then wire up your frontend and backend to use the auth client.

Frequently Asked Questions about better-auth-ts

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

FAQPage Schema
How do I implement TypeScript authentication across different backend frameworks?

TypeScript authentication can be implemented across Next.js, React, Express, and Node backends using a framework-agnostic, strongly-typed solution. It provides server and client templates to enable consistent sign-in flows and session management across your entire stack.

Can I use OAuth and two-factor authentication in a React application?

OAuth and two-factor authentication are supported in React applications through a plug-in architecture. This TypeScript-first solution handles email/password, magic links, and OAuth providers, enabling secure auth flows with extensible plugins.

How do I integrate an auth library with Drizzle or Prisma ORMs?

You can integrate authentication with Drizzle, Prisma, Kysely, or MongoDB by using provided database adapters and templates. These adapters enable rapid, consistent integration across popular databases and ORMs for your web application's session management.

What is the best way to manage JWT sessions in a Next.js app?

Managing JWT sessions in a Next.js app is best handled by a framework-agnostic TypeScript authentication solution. It targets secure session management and provides strongly-typed client and server templates for rapid configuration.

Does this TypeScript authentication solution support magic link sign-in?

Magic link sign-in is fully supported alongside email/password, OAuth, and two-factor authentication. The library uses an extensible plug-in architecture to deliver these secure authentication flows for modern TypeScript web applications.