better-auth

Automate authentication and authorization setup for TypeScript web apps.

3|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/vibery-studio/templates --skill better-auth-vibery-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/vibery-studio/templates/tree/main/skills/better-auth
Command: npx skills add https://github.com/vibery-studio/templates --skill better-auth-vibery-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Simplifies building secure, scalable authentication and authorization systems for TypeScript applications, eliminating boilerplate and reducing security risk.

Core Features & Use Cases

  • Built-in email/password authentication with verification and password rules
  • OAuth2 providers (GitHub, Google, Discord, etc.) with robust session management
  • Advanced features including 2FA, passkeys/WebAuthn, magic links, RBAC, and rate limiting
  • Framework-agnostic server/client integration across Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, Express, and more

Quick Start

Install better-auth in your project and mount the API handler in your framework to enable authentication and authorization.

Frequently Asked Questions about better-auth

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

FAQPage Schema
How do I add authentication to a TypeScript app without being locked into a specific framework?

Framework-agnostic authentication for TypeScript apps eliminates framework lock-in by supporting Next.js, Nuxt, SvelteKit, Remix, Hono, and Express. You mount the API handler in your chosen framework to enable email/password, OAuth, and session management.

Can I set up OAuth and 2FA in TypeScript without writing custom security boilerplate?

Yes, automating TypeScript authentication setup removes security boilerplate by providing built-in OAuth2 providers, 2FA, passkeys, and magic links. You configure environment variables for secrets and OAuth credentials to enable these features securely.

What do I need to configure before implementing passkeys and RBAC in my web application?

Before implementing passkeys and RBAC, you need to install the auth package, configure a database adapter, and provide environment variables for secrets. You can then optionally enable specific plugins to activate WebAuthn and role-based access control.

Does this TypeScript authentication approach work with both modern meta-frameworks and standard Express servers?

Yes, this TypeScript authentication approach works across modern meta-frameworks and standard servers. It supports framework-agnostic server and client integration for Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, and Express.

What is the best way to handle session management and password rules for TypeScript applications?

The best way to handle session management and password rules for TypeScript applications is using an automated auth system. It provides built-in email/password verification, robust session management, and configurable password rules without manual implementation.