better-auth

Configure authentication and authorization for TypeScript applications.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/toanalien/ezdevsecops --skill better-auth-toanalien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/toanalien/ezdevsecops/tree/main/.opencode/skills/better-auth
Command: npx skills add https://github.com/toanalien/ezdevsecops --skill better-auth-toanalien

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of implementing secure and robust authentication and authorization in TypeScript applications, handling everything from basic email/password to advanced features like OAuth, 2FA, and passkeys.

Core Features & Use Cases

  • Comprehensive Auth: Supports email/password, OAuth (Google, GitHub, etc.), 2FA/MFA, passkeys, sessions, RBAC, and rate limiting.
  • Framework Agnostic: Works seamlessly with Next.js, Nuxt, SvelteKit, Express, and more.
  • Use Case: You're building a new SaaS product and need to implement user sign-up, login, social sign-in with Google and GitHub, and secure user sessions across different parts of your application. This Skill provides a unified solution.

Quick Start

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

Frequently Asked Questions about better-auth

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

FAQPage Schema
How do I implement authentication and authorization in a TypeScript application?

Authentication and authorization in TypeScript applications can be implemented using a framework-agnostic solution supporting email/password, OAuth, 2FA, passkeys, sessions, and role-based access control. It integrates with Next.js, Nuxt, SvelteKit, and Express.

Can I use social login with OAuth providers like Google and GitHub in TypeScript?

Yes, OAuth social login with providers like Google and GitHub is supported. The solution allows you to add social sign-in alongside email/password authentication and manages secure user sessions across your application.

Does this TypeScript authentication solution support passkeys and two-factor authentication?

Passkeys and two-factor authentication are fully supported. The solution provides comprehensive security features including 2FA/MFA, passkeys, session management, and rate limiting for TypeScript applications.

What is the best way to add role-based access control to a Next.js or Express app?

Role-based access control can be added using a framework-agnostic authentication solution that works seamlessly with Next.js and Express. It handles RBAC alongside session management and rate limiting without framework lock-in.

How do I set up email and password authentication with GitHub OAuth for my SaaS product?

You can set up email/password authentication with GitHub OAuth using this unified TypeScript solution. It provides a quick start process to configure basic credentials and social sign-in for new SaaS products.