better-auth-ts

Provides framework-agnostic authentication for TypeScript applications.

3|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/Syedaashnaghazanfar/full-stack-todo-app --skill better-auth-ts
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: better-auth-ts
Source: https://github.com/Syedaashnaghazanfar/full-stack-todo-app/tree/main/.claude/skills/better-auth-ts
Command: npx skills add https://github.com/Syedaashnaghazanfar/full-stack-todo-app --skill better-auth-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Better Auth TypeScript/JavaScript authentication library provides a cohesive, framework-agnostic approach to implementing secure authentication in TypeScript projects, reducing boilerplate and errors.

Core Features & Use Cases

  • Framework-agnostic authentication: Integrates with Next.js, React, Express, and other TS stacks.
  • Comprehensive auth: Supports email/password, OAuth, JWT, sessions, 2FA, magic links, and social login with Next.js 16 proxy patterns.
  • Plugins and templates: Offers adapters and client templates to standardize server/client configurations and enable plug-in enhancements.

Quick Start

Install the package and bootstrap your auth server and client with the recommended adapters and templates.

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 authentication in a TypeScript application across different frameworks?▼

Better Auth provides a framework-agnostic authentication layer supporting Next.js, React, Express, and generic TypeScript projects. It reduces boilerplate by offering email/password, OAuth, JWT, sessions, 2FA, magic links, and social login out of the box with modular adapter-based configuration.

Can I use OAuth and two-factor authentication with Next.js 16?▼

Yes. Better Auth supports OAuth, two-factor authentication, and social login with Next.js 16 proxy patterns. It provides plugin-based enhancements and client templates to standardize server and client configurations.

What authentication methods does a framework-agnostic TypeScript library support?▼

Better Auth supports email/password login, OAuth providers, JWT tokens, session management, two-factor authentication, magic links, and social login. It works across Next.js, React, Express, and other TypeScript stacks with minimal setup.

How do I reduce authentication boilerplate in my TypeScript project?▼

Better Auth eliminates repetitive auth code through adapters and client templates that standardize configuration and enable plugin-based extensions. Install the package and bootstrap your auth server and client with recommended templates.

Does JWT and session-based authentication work together in this approach?▼

Better Auth supports both JWT tokens and session management as distinct authentication methods. You can configure either approach or combine them depending on your application's security and architecture requirements.