Better Auth

Authentication and authorization with better-auth in Spiceflow and TypeScript apps. Covers server config with Drizzle adapter (Postgres and SQLite), Spiceflow middleware for forwarding auth requests, client setup, session middleware, social and email/password auth, server-side session checks, and React client hooks (useSession, signIn, signOut, signUp). Also covers device authorization (CLI device flow), bearer token auth, server actions with auth, and SQLite Durable Objects (betterAuth inside the DO, getCookieCache in the Worker). ALWAYS load this skill when a project uses better-auth. Load durable-objects.md when auth tables live in a Durable Object.

remorses Updated 45 repo stars

File contents

remorses/opencode-config commit eea29918ea

Frequently asked questions

npx get-skill add remorses/better-auth