better-auth

Implement authentication and authorization for TypeScript applications with Better Auth.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/chef0111/physthink --skill better-auth-chef0111
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/chef0111/physthink/tree/main/.agents/skills/better-auth
Command: npx skills add https://github.com/chef0111/physthink --skill better-auth-chef0111

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive, framework-agnostic authentication and authorization solution for TypeScript applications, simplifying the implementation of secure user management.

Core Features & Use Cases

  • Multi-Method Authentication: Supports email/password, OAuth (Google, GitHub, etc.), passkeys, and more.
  • Advanced Security: Includes features like two-factor authentication (2FA), rate limiting, and session management.
  • Use Case: You are building a new web application and need to implement user sign-up, login, and secure session handling across different frameworks like Next.js, Nuxt, or SvelteKit.

Quick Start

Configure the Better Auth skill by following the setup instructions in the documentation.

Frequently Asked Questions about better-auth

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

FAQPage Schema
How do I implement authentication in a TypeScript app using Next.js or SvelteKit?

You implement TypeScript authentication using a framework-agnostic system that integrates with Next.js, Nuxt, SvelteKit, and Express to manage user registration, login, and sessions.

What's the best way to add OAuth providers like Google and GitHub to my web application?

Adding OAuth providers like Google and GitHub is handled through a comprehensive authentication system that configures external login flows alongside email/password and passkey methods for TypeScript applications.

How does two-factor authentication and session management work for securing user access?

Two-factor authentication and session management work by adding an advanced security layer to the login flow, rate limiting access attempts and maintaining secure session states for TypeScript applications.

Can I use role-based access control with this authentication system?

Yes, you can use role-based access control. The authorization system includes role management capabilities, allowing you to define user permissions and secure application routes based on assigned roles.

Does this authentication library support passkeys for passwordless login?

Yes, the authentication library supports passkeys for passwordless login alongside multi-method options including email/password, OAuth providers, and two-factor authentication.

Why choose a framework-agnostic authentication solution over a framework-specific one?

Choosing a framework-agnostic authentication solution allows you to implement secure user management once and deploy it across Next.js, Nuxt, SvelteKit, or Express without rewriting core login logic.