ck:better-auth

Implement authentication and authorization for TypeScript web applications.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/snake-dev-team/snake-backlink-forge --skill ck-better-auth-snake-dev-team
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:better-auth
Source: https://github.com/snake-dev-team/snake-backlink-forge/tree/main/.claude/skills/better-auth
Command: npx skills add https://github.com/snake-dev-team/snake-backlink-forge --skill ck-better-auth-snake-dev-team

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the authentication process for TypeScript applications, offering a comprehensive solution for email/password, OAuth providers, 2FA, passkeys, and session management.

Core Features & Use Cases

  • Authentication Methods: Supports email/password, OAuth (GitHub, Google, etc.), 2FA, passkeys, and magic links.
  • Multi-Framework Support: Works with Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, Express, and more.
  • Use Case: Create a secure login system for your TypeScript web application that allows users to sign in with their email, social accounts, or passkeys, while enabling two-factor authentication for enhanced security.

Quick Start

Install the better-auth package and configure it in your TypeScript application. Set up the environment variables for secret keys and URLs, then create instances of the auth server and client. Implement sign-up, sign-in, and session management as needed.

Frequently Asked Questions about ck:better-auth

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

FAQPage Schema
How do I add OAuth and 2FA to my TypeScript web app?

To implement authentication in TypeScript, install `better-auth`, configure environment variables for secrets and URLs, then initialize the auth server and client. This supports email/password, OAuth, passkeys, and session management for web applications.

What is the best way to set up passkeys and magic links for TypeScript applications?

Setting up passkeys and magic links for TypeScript applications is handled by configuring authentication instances using `better-auth`. This framework provides passwordless login methods alongside traditional email and OAuth strategies for secure access.

Does better-auth work with Next.js, SvelteKit, and Express?

Yes, better-auth works with Next.js, SvelteKit, Express, Nuxt, Remix, Astro, and Hono. The Skill supports multi-framework integration to implement secure sign-in and session management across various TypeScript web environments.

Why use better-auth for session management in TypeScript instead of building a custom solution?

Using better-auth for session management in TypeScript provides pre-built support for email, OAuth, 2FA, and passkeys without custom boilerplate. It simplifies securing web applications by managing complex authentication flows and session states natively.

How to configure environment variables for OAuth providers in a TypeScript auth setup?

To configure environment variables for OAuth providers in a TypeScript auth setup, define secret keys and URLs during the initial `better-auth` installation. This connects your auth server and client instances to external social login providers securely.