better-auth-v1.4

Configure Better Auth v1.4 for web apps with email/password, OAuth, sessions, and 2FA using Drizzle and Express.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill better-auth-v1-4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-v1.4
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/better-auth-v1.4
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill better-auth-v1-4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Better Auth v1.4 provides a framework to implement secure authentication, session management, and two-factor authentication across backend and frontend, reducing boilerplate and ensuring consistent security practices.

Core Features & Use Cases

  • Server-side setup with drizzleAdapter and plugin support (twoFactor) for scalable authentication.
  • Client SDK usage via createAuthClient for seamless React/Vue/Svelte integrations and session management.
  • Express integration with toNodeHandler and fromNodeHeaders for easy API exposure.
  • Database schemas for user, session, account, verification, and two_factor, with Drizzle integration.
  • Security considerations, deployment notes, and TypeScript typings for end-to-end usage.

Quick Start

Install Better Auth v1.4 in your project and configure a basic email/password workflow with session management.

Frequently Asked Questions about better-auth-v1.4

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

FAQPage Schema
How do I set up secure authentication with email, password, and OAuth in TypeScript?

Secure authentication setup uses Better Auth v1.4 to implement email, password, and OAuth workflows via a backend framework with Drizzle adapter integration, providing documented API surfaces and consistent security practices across server and client.

Can I integrate two-factor authentication into an existing Express and Drizzle ORM backend?

Yes, two-factor authentication integrates with Express and Drizzle using the twoFactor plugin and drizzleAdapter, mapping to predefined database schemas for user, session, account, and verification to enforce scalable 2FA workflows.

What is the best way to manage user sessions across React, Vue, and Svelte frontends?

Session management across React, Vue, and Svelte uses the createAuthClient client SDK, enabling seamless frontend integrations that handle authentication states and session tokens consistently with the backend API.

How does Better Auth expose its API routes within a Node.js server?

Better Auth exposes API routes within a Node.js server using toNodeHandler for request handling and fromNodeHeaders for header conversion, ensuring easy and compatible API exposure on Express backends.

What database tables do I need for Better Auth's authentication and verification flows?

Database tables required for authentication flows include user, session, account, verification, and two_factor, which Drizzle integration uses to map relational data for complete session and 2FA management.