better-auth-ts

Authenticate TypeScript apps with email, OAuth, 2FA, and magic links.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/ZoyaAfzal/Hackathon2_Todo_SDD --skill better-auth-ts-zoyaafzal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-ts
Source: https://github.com/ZoyaAfzal/Hackathon2_Todo_SDD/tree/main/.claude/skills/better-auth-ts
Command: npx skills add https://github.com/ZoyaAfzal/Hackathon2_Todo_SDD --skill better-auth-ts-zoyaafzal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript projects require a robust, extensible authentication solution that works across frameworks and data stores to securely manage users, sessions, and access control.

Core Features & Use Cases

  • Supports email/password, OAuth, 2FA, magic links, and session management for Next.js, Express, and React apps.
  • Offers adapter-based integrations for Drizzle, Prisma, Kysely, and MongoDB, plus a plugin system for organizations and security.
  • Use case: rapidly bootstrap a secure auth layer for a new TS project and easily migrate between databases.

Quick Start

Install Better Auth in your TypeScript project and wire up a server/client setup to enable secure user authentication immediately.

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 TypeScript app with email, OAuth, and magic links?

You can add authentication to a TypeScript app by wiring up a server and client setup to enable secure user authentication immediately. This approach supports email/password, OAuth, and magic links for Next.js, React, and Express.

Does TypeScript session management work with Prisma and MongoDB?

TypeScript session management works with Prisma and MongoDB through adapter-based database integrations. This allows you to securely manage users and sessions while easily migrating between supported data stores like Drizzle and Kysely.

What is the best way to implement 2FA and secure session management in Next.js?

The best way to implement 2FA and session management in Next.js is using a modular authentication system with a server/client template setup. This provides adapter-based database support and secure access control out of the box.

Can I rapidly bootstrap an auth layer for Express and React apps?

You can rapidly bootstrap a secure auth layer for new Express and React TypeScript projects by wiring up server and client templates. This setup immediately provides email/password, OAuth, and 2FA capabilities using adapter-based databases.

How do I migrate between databases when using OAuth and session management in TypeScript?

Migrate between databases for TypeScript OAuth and session management using provided migration utilities and adapter-based integrations. This supports Drizzle, Prisma, Kysely, and MongoDB for secure deployments.