smithery/aqsagull99

setup-better-auth

Initialize Better Auth in a project with proper configuration, database setup, and provider configuration

Installation

$ npx skills add smithery/aqsagull99 --skill setup-better-auth

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/aqsagull99.

npx skills add smithery/aqsagull99

Browse all from smithery/aqsagull99

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,330 B
  • docs SUMMARY.md 130 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Better Auth Setup

Instructions

  1. Check if Better Auth is already installed in the project
  2. Install Better Auth if not present:

``bash npm install better-auth ``

  1. Create the main auth configuration file (usually src/auth.ts or similar)
  2. Set up the basic configuration with required options
  3. Configure the database connection
  4. Set up the client-side configuration if needed
  5. Create necessary database tables using migrations

Configuration Steps

  1. Create auth server instance with basic options
  2. Configure the database adapter (PostgreSQL, MySQL, SQLite, etc.)
  3. Set up session options
  4. Configure social providers if needed
  5. Add the auth API routes to your application

Example Setup

import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapter-drizzle";
import { db } from "./db"; // your database instance

export const auth = betterAuth({
  database: drizzleAdapter(db, {
    // your database options
  }),
  secret: process.env.AUTH_SECRET,
  emailAndPassword: {
    enabled: true,
  },
  socialProviders: {
    // configure social providers here
  },
});