better-auth

Configure authentication and authorization for TypeScript applications.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/HsnSaboor/open-engineer --skill better-auth-hsnsaboor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/HsnSaboor/open-engineer/tree/main/src/skills/bundled/better-auth-unified
Command: npx skills add https://github.com/HsnSaboor/open-engineer --skill better-auth-hsnsaboor

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 in TypeScript applications, offering a comprehensive solution for various auth needs.

Core Features & Use Cases

  • Multi-Method Authentication: Supports email/password, OAuth (Google, GitHub, Discord), 2FA, and Passkeys.
  • Framework Agnostic: Works seamlessly with Next.js, SvelteKit, Express, and more.
  • Use Case: Securely add social login options (like Google and GitHub) to your new Next.js application, ensuring a smooth user onboarding experience.

Quick Start

Install the better-auth package by running 'npm install better-auth'.

Frequently Asked Questions about better-auth

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

FAQPage Schema
How do I add OAuth and passkeys to my TypeScript application?

You can add OAuth and passkeys to TypeScript applications by implementing a framework-agnostic authentication solution that natively handles social login, two-factor authentication, and WebAuthn credentials.

Does TypeScript authentication work with SvelteKit and Express?

Yes, framework-agnostic TypeScript authentication works seamlessly with SvelteKit, Express, and Next.js, allowing you to manage user sessions and authorization across different web frameworks.

How do I implement RBAC and rate limiting in a TypeScript backend?

Implementing RBAC and rate limiting in a TypeScript backend requires an authentication solution that integrates role-based access control and request throttling to secure API endpoints and manage user permissions.

Can I use Prisma and Drizzle ORM for authentication session management?

Yes, TypeScript authentication solutions support various databases and ORMs including Prisma and Drizzle, allowing you to securely manage user session data directly through your preferred database toolkit.

What is the best way to set up email and password authentication in Next.js?

The best way to set up email and password authentication in Next.js is using a framework-agnostic TypeScript library that securely manages credential verification, session tokens, and user onboarding flows.