Batter Auth Complete Documentation
/install lb-better-auth-skill
Better Auth Documentation
Complete Better Auth documentation embedded in markdown. Read from references/ to answer questions about authentication implementation, OAuth setup, database configuration, and framework integration.
Documentation Structure
All documentation is in references/ organized by topic:
Core Documentation
Getting Started
references/introduction.mdx- What is Better Authreferences/installation.mdx- Setup guidereferences/basic-usage.mdx- Authentication basicsreferences/comparison.mdx- vs other auth libraries
Authentication Methods (references/authentication/)
OAuth providers and authentication strategies:
google.mdx- Google OAuthgithub.mdx- GitHub OAuthmicrosoft.mdx- Microsoft/Azure ADapple.mdx- Apple Sign Indiscord.mdx,facebook.mdx,twitter.mdx, etc.email-password.mdx- Email & password authmagic-link.mdx- Passwordless magic linkspasskey.mdx- WebAuthn passkeys
Database Adapters (references/adapters/)
prisma.mdx- Prisma ORMdrizzle.mdx- Drizzle ORMkysely.mdx- Kyselymongodb.mdx- MongoDBpg.mdx- node-postgres
Concepts (references/concepts/)
Core authentication concepts:
session.mdx- Session managementoauth.mdx- OAuth flowdatabase.mdx- Database schemarate-limit.mdx- Rate limitingmiddleware.mdx- Auth middlewarecookies.mdx- Cookie handling
Plugins (references/plugins/)
Extension features:
two-factor.mdx- 2FA/TOTPpasskey.mdx- WebAuthn/passkeysemail-verification.mdx- Email verificationmagic-link.mdx- Magic link authorganization.mdx- Organizations & teamsmulti-session.mdx- Multiple sessionsanonymous.mdx- Anonymous users
Integrations (references/integrations/)
Framework-specific guides:
next-js.mdx- Next.js integrationsveltekit.mdx- SvelteKitastro.mdx- Astrosolid-start.mdx- SolidStart
Examples (references/examples/)
Working examples:
next-js.mdx- Complete Next.js examplesveltekit.mdx- SvelteKit example
Guides (references/guides/)
How-to guides:
custom-session.mdx- Custom session handlingtesting.mdx- Testing auth flowsdeployment.mdx- Production deployment
API Reference (references/reference/)
Complete API documentation.
Quick Reference
Common Tasks
| Task | File to Read |
|---|---|
| Initial setup | references/installation.mdx |
| Email & password auth | references/authentication/email-password.mdx |
| Google OAuth | references/authentication/google.mdx |
| GitHub OAuth | references/authentication/github.mdx |
| Setup with Prisma | references/adapters/prisma.mdx |
| Setup with Drizzle | references/adapters/drizzle.mdx |
| Session management | references/concepts/session.mdx |
| Add 2FA | references/plugins/two-factor.mdx |
| Add passkeys | references/plugins/passkey.mdx |
| Next.js integration | references/integrations/next-js.mdx |
| Organizations/teams | references/plugins/organization.mdx |
| Rate limiting | references/concepts/rate-limit.mdx |
When to Use This Skill
- Implementing authentication in a TypeScript project
- Setting up OAuth providers (Google, GitHub, Microsoft, etc.)
- Configuring database adapters (Prisma, Drizzle, etc.)
- Adding 2FA, passkeys, or magic links
- Managing sessions and cookies
- Integrating with Next.js, SvelteKit, or other frameworks
- Questions about auth patterns and best practices
How to Navigate
- Start with
references/introduction.mdxfor overview - For setup: Read
references/installation.mdx - For auth methods: Browse
references/authentication/ - For database: Check
references/adapters/ - For advanced features: See
references/plugins/ - For framework integration: Use
references/integrations/
All files are .mdx (Markdown + JSX) but readable as plain markdown.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install lb-better-auth-skill - After installation, invoke the skill by name or use
/lb-better-auth-skill - Provide required inputs per the skill's parameter spec and get structured output
What is Batter Auth Complete Documentation?
Complete Better Auth documentation in markdown format. Use when implementing authentication in TypeScript projects - covers OAuth providers (Google, GitHub, etc.), email/password, passkeys, 2FA, session management, database adapters (Prisma, Drizzle), and framework integrations (Next.js, SvelteKit, etc.). It is an AI Agent Skill for Claude Code / OpenClaw, with 1604 downloads so far.
How do I install Batter Auth Complete Documentation?
Run "/install lb-better-auth-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Batter Auth Complete Documentation free?
Yes, Batter Auth Complete Documentation is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Batter Auth Complete Documentation support?
Batter Auth Complete Documentation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Batter Auth Complete Documentation?
It is built and maintained by leonaaardob (@leonaaardob); the current version is v1.4.18.