Better Auth is a TypeScript-first, framework-agnostic auth framework supporting email/password, OAuth, magic links, passkeys, and more via plugins.
Only define baseURL/secret in config if env vars are NOT set.
File Location CLI looks for auth.ts in: ./, ./lib, ./utils, or under ./src. Use --config for custom path.
Da utilizzare quando si implementa l'autenticazione con Better Auth in un'app TypeScript/Next.js (strategia di sessione, provider, cookie, CSRF, reindirizzamenti, middleware e best practice per la sicurezza). Fonte: heyvhuang/ship-faster.