Install
openclaw skills install lb-better-auth-skillComplete 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.).
openclaw skills install lb-better-auth-skillComplete Better Auth documentation embedded in markdown. Read from references/ to answer questions about authentication implementation, OAuth setup, database configuration, and framework integration.
All documentation is in references/ organized by topic:
references/introduction.mdx - What is Better Authreferences/installation.mdx - Setup guidereferences/basic-usage.mdx - Authentication basicsreferences/comparison.mdx - vs other auth librariesreferences/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 passkeysreferences/adapters/)prisma.mdx - Prisma ORMdrizzle.mdx - Drizzle ORMkysely.mdx - Kyselymongodb.mdx - MongoDBpg.mdx - node-postgresreferences/concepts/)Core authentication concepts:
session.mdx - Session managementoauth.mdx - OAuth flowdatabase.mdx - Database schemarate-limit.mdx - Rate limitingmiddleware.mdx - Auth middlewarecookies.mdx - Cookie handlingreferences/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 usersreferences/integrations/)Framework-specific guides:
next-js.mdx - Next.js integrationsveltekit.mdx - SvelteKitastro.mdx - Astrosolid-start.mdx - SolidStartreferences/examples/)Working examples:
next-js.mdx - Complete Next.js examplesveltekit.mdx - SvelteKit examplereferences/guides/)How-to guides:
custom-session.mdx - Custom session handlingtesting.mdx - Testing auth flowsdeployment.mdx - Production deploymentreferences/reference/)Complete API documentation.
| 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 |
references/introduction.mdx for overviewreferences/installation.mdxreferences/authentication/references/adapters/references/plugins/references/integrations/All files are .mdx (Markdown + JSX) but readable as plain markdown.