LogoClawIndex
CasesSkillsAbout
LogoClawIndex

auth - Set up better-auth authentication for a Next.js app

Sets up better-auth with email/password, OAuth providers, role-based access, account management, sessions, and Drizzle ORM integration.

Tags

Updated: 2026-12-05

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Configure better-auth server
  • Create authentication client
  • Add protected route helpers
  • Configure OAuth providers
  • Manage user accounts
  • Protect application routes
  • Create authentication UI
  • Integrate Drizzle ORM

Inputs

  • Next.js project structure
  • Authentication environment variables
  • PostgreSQL database connection
  • OAuth client credentials
  • Email templates
  • Email sending function

Outputs

  • Authentication configuration files
  • Authentication client and route helpers
  • Authentication API route
  • Drizzle database schema and configuration
  • Sign-in and sign-up pages
  • Account management pages
  • Protected application routes
  • Authentication environment configuration

Requirements

  • Running Docker PostgreSQL container
  • Completed env-config skill
  • Bun package manager
  • better-auth dependencies
  • Drizzle ORM dependencies

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
authentication
better-auth
OAuth
access control
sessions
account management
Drizzle ORM
Next.js
Configure better-auth server
Create authentication client
Add protected route helpers
Configure OAuth providers
Next.js project structure
Authentication environment variables
PostgreSQL database connection
Authentication configuration files
Authentication client and route helpers
Authentication API route