better-auth

Configure authentication and authorization for TypeScript applications with email/password, OAuth, 2FA, passkeys, and Prisma or Drizzle support.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/IvanTsxx/Lules-Market --skill better-auth-ivantsxx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/IvanTsxx/Lules-Market/tree/main/.claude/skills/better-auth
Command: npx skills add https://github.com/IvanTsxx/Lules-Market --skill better-auth-ivantsxx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of implementing robust authentication and authorization features in TypeScript applications, saving developers significant time and effort.

Core Features & Use Cases

  • Framework Agnostic: Works seamlessly with any JavaScript/TypeScript framework (Next.js, Nuxt, SvelteKit, etc.).
  • Multiple Auth Methods: Supports email/password, social OAuth, 2FA, passkeys, and more.
  • Database Flexibility: Integrates with various databases and ORMs (Prisma, Drizzle, MongoDB).
  • Use Case: You need to add secure user login, registration, and session management to your new SvelteKit e-commerce application, including Google Sign-In and two-factor authentication.

Quick Start

Use the better-auth skill to set up email and password authentication in your Next.js application.

Frequently Asked Questions about better-auth

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

FAQPage Schema
How do I add TypeScript authentication and session management to my Next.js app?

TypeScript authentication and session management can be implemented using a framework-agnostic solution supporting email/password, social OAuth, and 2FA. It integrates seamlessly with Next.js applications to enable secure user login, registration, and session handling.

Can I use Prisma or Drizzle ORM for user management and authentication?

Yes, you can use Prisma or Drizzle ORM for user management and authentication. The solution integrates with various databases and ORMs including Prisma, Drizzle, and MongoDB to store user data and manage sessions securely.

Does this TypeScript authentication solution support social OAuth and passkeys?

Yes, this TypeScript authentication solution supports social OAuth and passkeys. It provides multiple authentication methods including email/password, social OAuth, two-factor authentication, and passkeys for secure access.

What is the best way to implement 2FA in a SvelteKit application?

The best way to implement 2FA in a SvelteKit application is using a framework-agnostic authentication solution. It works seamlessly with SvelteKit to provide two-factor authentication, secure user management, and session handling capabilities.

How does framework-agnostic authentication work with JavaScript frameworks?

Framework-agnostic authentication works with JavaScript frameworks by providing a standalone integration layer. It connects to any JavaScript or TypeScript framework like Next.js, Nuxt, or SvelteKit to manage users, sessions, and authorization without framework-specific constraints.