ck:better-auth

Configure better-auth authentication with email/password, OAuth, 2FA, and sessions.

1|Updated May 4, 2026
One-click install
npx skills add https://github.com/auxi-wardrobe/auxi-all-in --skill ck-better-auth-auxi-wardrobe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:better-auth
Source: https://github.com/auxi-wardrobe/auxi-all-in/tree/main/.agents/skills/better-auth
Command: npx skills add https://github.com/auxi-wardrobe/auxi-all-in --skill ck-better-auth-auxi-wardrobe

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of securely authenticating users and managing their sessions in your application, simplifying the backend development process for robust user management.

Core Features & Use Cases

  • Email/Password Auth: Simple yet secure login and registration for email and password authentication.
  • OAuth: Supports various OAuth providers (e.g., GitHub, Google, Discord) for seamless third-party login.
  • 2FA: Implement two-factor authentication to enhance security.
  • Session Management: Handles session expiration and renewal to ensure user security.
  • Rate Limiting: Prevents abuse and ensures fair access to your service.
  • Advanced Features: Extends with plugins for passkeys, magic links, username auth, and more.
  • Use Case: If you're building a web application and need a secure authentication system with a range of options, this Skill can be your solution.

Quick Start

Use the better-auth skill to set up email/password authentication in your 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 email and password authentication in a TypeScript backend?

Email and password authentication is handled by configuring the better-auth library to securely manage user login and registration. This Skill provides TypeScript and JavaScript solutions for robust backend user management.

What is the best way to add OAuth provider logins like Google and GitHub to my web app?

Adding OAuth provider logins is supported natively by configuring the better-auth library. It handles seamless third-party authentication flows for providers such as GitHub, Google, and Discord.

Can I use passkeys and magic links for user authentication in JavaScript applications?

Yes, passkeys and magic links are supported for JavaScript authentication by extending the base configuration with specific plugins. You need to integrate the passkey and magicLink plugins to enable these features.

How do I set up two-factor authentication and session management for secure user logins?

Two-factor authentication and session management are set up by enabling the twoFactor plugin within your auth configuration. The system then handles 2FA verification alongside automatic session expiration and renewal.

Does this authentication approach support role-based access control and rate limiting?

Yes, role-based access control and rate limiting are supported to prevent service abuse and manage user permissions. The better-auth library includes native features to enforce RBAC and rate limits directly.