better-auth-ts

Provide email/password, OAuth, JWT, sessions, 2FA, and magic link authentication for TypeScript apps.

1|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/SOFIA-ASIF/TaskFlow-ToDo-APP --skill better-auth-ts-sofia-asif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-ts
Source: https://github.com/SOFIA-ASIF/TaskFlow-ToDo-APP/tree/main/.claude/skills/better-auth-ts
Command: npx skills add https://github.com/SOFIA-ASIF/TaskFlow-ToDo-APP --skill better-auth-ts-sofia-asif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a robust, framework-agnostic authentication layer for TypeScript applications, enabling secure user sign-in, sign-up, sessions, and access control.

Core Features & Use Cases

  • Email/password authentication with verification, password recovery, and session management.
  • Social OAuth, magic links, 2FA, and JWT-based authorization across Next.js, React, and Express projects.
  • Quick-start templates and plugin-based configuration to integrate with Drizzle, Prisma, Kysely, or MongoDB backends.

Quick Start

Install better-auth and configure it with your chosen database adapter to enable secure authentication in 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 and React project?

Adding authentication to a Next.js and React project involves configuring a TypeScript auth toolkit with a compatible database adapter. This enables email/password, OAuth, and magic link integrations for secure user sign-in and sessions.

Can I use JWT and OAuth for TypeScript authentication in Express?

Yes, JWT and OAuth are supported for TypeScript authentication in Express projects. You can implement social OAuth, JWT-based authorization, and session management across Next.js, React, and Express applications using a framework-agnostic auth layer.

What database adapters work with TypeScript authentication frameworks?

TypeScript authentication frameworks support integration with Drizzle, Prisma, Kysely, and MongoDB backends. You configure these database adapters during setup to enable user verification, password recovery, and session management.

How does two-factor authentication and magic link sign-in work in React?

Two-factor authentication and magic link sign-in in React work through a plugin-based configuration system. This enables secure passwordless entry points and enhanced access control alongside standard email/password authentication flows.

Do I need a TypeScript environment to set up Next.js authentication?

Yes, you need a TypeScript project environment to set up this Next.js authentication. It requires a compatible database adapter and plugin configuration to successfully enable secure user sign-up, sign-in, and sessions.