ck:better-auth

Implement authentication and authorization for TypeScript applications using Better Auth.

1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/TNHoang2708/Gym_Ver2 --skill ck-better-auth-tnhoang2708
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:better-auth
Source: https://github.com/TNHoang2708/Gym_Ver2/tree/main/.claude/skills/better-auth
Command: npx skills add https://github.com/TNHoang2708/Gym_Ver2 --skill ck-better-auth-tnhoang2708

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires better-auth, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides a comprehensive, framework-agnostic authentication and authorization solution for TypeScript applications, addressing a range of common auth needs such as email/password, OAuth providers, 2FA/MFA, passkeys, sessions, and RBAC.

Core Features & Use Cases

  • Authentication: Supports email/password, OAuth providers (GitHub, Google), 2FA/MFA, passkeys, WebAuthn, and sessions.
  • Authorization: Manages RBAC and rate limiting.
  • Use Case: Build a secure, scalable authentication system for your TypeScript application that supports various login methods and provides robust user management.

Quick Start

Run the 'better-auth' skill to generate an auth setup in your TypeScript application.

Frequently Asked Questions about ck:better-auth

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

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

Authentication in a TypeScript application is implemented by handling email/password, OAuth, 2FA, passkeys, and sessions. This solution provides a framework-agnostic setup that integrates with various JavaScript environments to manage secure user logins.

Does this authentication solution work with Next.js and Express?

Yes, this authentication solution works with Next.js and Express. It is framework-agnostic and supports various platforms including Nuxt, SvelteKit, Remix, Astro, and Hono for seamless integration.

What is the best way to add passkeys and 2FA to my web app?

The best way to add passkeys and 2FA is using a comprehensive authentication library. This approach manages WebAuthn, multi-factor authentication, and OAuth providers to build a secure and scalable user management system.

How do I set up role-based access control in TypeScript?

Role-based access control in TypeScript is set up by managing authorization rules and rate limiting. This solution handles RBAC alongside user sessions to restrict access and secure application routes effectively.

Do I need the Better Auth library to manage OAuth and sessions?

Yes, you need the Better Auth library to manage OAuth and sessions. This Skill requires the Better Auth dependency to generate the auth setup and provide its framework-agnostic authentication functionality.