better-auth

Implement authentication and authorization for TypeScript applications.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/locnbk2002/my-copilot --skill better-auth-locnbk2002
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/locnbk2002/my-copilot/tree/main/my-copilot-backend/skills/better-auth
Command: npx skills add https://github.com/locnbk2002/my-copilot --skill better-auth-locnbk2002

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust and flexible authentication and authorization solution for TypeScript applications, simplifying the implementation of secure user sign-up, sign-in, and access control.

Core Features & Use Cases

  • Multi-Method Authentication: Supports email/password, OAuth (Google, GitHub), 2FA/MFA, and passkeys.
  • Framework Agnostic: Works with various frameworks like Next.js, Nuxt, SvelteKit, Express, etc.
  • Use Case: Securely onboard new users to your web application using their GitHub account, ensuring only authenticated users can access sensitive data.

Quick Start

Use the better-auth skill to set up email/password authentication with a GitHub OAuth provider.

Frequently Asked Questions about better-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement TypeScript authentication with OAuth and passkeys?

TypeScript authentication with OAuth and passkeys is implemented by configuring a framework-agnostic library that handles multi-method sign-in. This Skill supports email/password, social OAuth providers, 2FA/MFA, and passkeys to secure user access in TypeScript applications.

Can I use this authentication framework with Next.js or Express?

Yes, this authentication framework works with various web frameworks including Next.js, Nuxt, SvelteKit, and Express. It is framework agnostic, allowing you to integrate secure user sign-up and sign-in flows across different TypeScript environments.

What is the best way to add 2FA and role-based access control to a TypeScript app?

The best way to add 2FA and role-based access control (RBAC) is using a comprehensive TypeScript authentication framework. This Skill supports multi-factor authentication and RBAC, simplifying secure access control and user management for web applications.

Does this TypeScript auth solution handle database schema generation?

Yes, this TypeScript auth solution handles database schema generation and includes migration tools. It automatically generates the required database schema to support sessions, user accounts, and multi-method authentication configurations.

How do I set up email/password and GitHub OAuth for user onboarding?

To set up email/password and GitHub OAuth for user onboarding, configure the authentication framework with your desired providers. This Skill simplifies securely onboarding new users using social OAuth accounts and managing authenticated sessions.