better-auth-patterns
CommunityAuth patterns for multi-framework apps
Software Engineering#authentication#better-auth#patterns#OAuth#session-management#adapters#server-client
Authorqazuor
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill consolidates authentication patterns for secure cross-framework implementations using Better Auth across server and client environments.
Core Features & Use Cases
- Unified server and client setup patterns for Next.js, Astro, Hono, Express, and TanStack Start.
- OAuth providers, session management, plugins, and production hardening for robust security.
- Use Case: A monorepo with frontend and backend in different frameworks can share a single authentication layer, reducing bespoke integrations and security gaps.
Quick Start
Install and configure a minimal Better Auth setup in your project, then enable a provider (e.g., Google) and a basic server/client integration. Example steps: install the library, set appName/baseURL/secret, import the auth object, and initialize with a simple provider to get sign-in working in both frontend and API routes.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: better-auth-patterns Download link: https://github.com/qazuor/claude-code-knowledge/archive/main.zip#better-auth-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.