better-auth-skill

Installation
SKILL.md

Better Auth Skill

Expert skill for implementing Better Auth in Next.js applications with production best practices, security hardening, and deployment optimization.

Production-Ready Configuration

Use this configuration for production deployments (especially on Vercel):

// lib/auth.ts - Production Ready
import { betterAuth } from "better-auth";
import { nextCookies } from "better-auth/next-js";
import { Pool } from "pg"; // or your database client

// Create a singleton pool to prevent multiple connections during dev
const globalForPool = globalThis as unknown as { pool: Pool | undefined };
Installs
1
GitHub Stars
3
First Seen
Jun 16, 2026
better-auth-skill — aibot88/sec_skill_store