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 eea2991 2 files · 51.0 KB Updated

File contents

remorses/opencode-config/tree/main/skills/better-auth commit eea29918ea

Frequently asked questions

npx skillmds@latest add remorses/better-auth