Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework. Features include email/password authentication with verification, OAuth providers (Google, GitHub, Discord, etc.), two-factor authentication (TOTP, SMS), passkeys/WebAuthn support, session management, role-based access control (RBAC), rate limiting, and database adapters. Use when adding authentication to applications, implementing OAuth flows, setting up 2FA/MFA, managing user
Detected risks:
Better Auth is a comprehensive, framework-agnostic authentication and authorization solution designed for TypeScript applications. It simplifies the implementation of robust user authentication systems by offering support for email/password authentication, OAuth providers (such as Google, GitHub, and Discord), two-factor authentication (TOTP, SMS), passkeys/WebAuthn, session management, and role-based access control (RBAC). By leveraging Better Auth, developers can quickly integrate authentication and authorization features into web applications without the need for extensive custom code, providing secure access control and seamless user management functionalities.
Better Auth supports email/password authentication, social OAuth logins (e.g., GitHub, Google, Discord), two-factor authentication (TOTP and SMS), and passkeys/WebAuthn for secure login options.
Yes, Better Auth is framework-agnostic and can be used with any JavaScript or TypeScript framework such as Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, and Express.
No, Better Auth is flexible and allows integration with different databases, but it is not a strict requirement. You can use the built-in features without a database, or you can integrate one for more advanced features like session management and persistent user data.
Two-factor authentication (2FA) adds an extra layer of security by requiring users to verify their identity using a second factor, such as a time-based one-time password (TOTP) or SMS, in addition to their regular login credentials.
Quick Setup:
.claude/skills/Repository
mrgoonie/claudekit-skills