authentication

Configure Better Auth for email/password, OAuth, 2FA, passkeys, and RBAC.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/thienty1207/rust-skills --skill authentication-thienty1207
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authentication
Source: https://github.com/thienty1207/rust-skills/tree/main/authentication
Command: npx skills add https://github.com/thienty1207/rust-skills --skill authentication-thienty1207

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Authentication and authorization are essential but complex to implement securely; this skill provides a framework-agnostic, TypeScript-based solution that covers common auth needs and enterprise features.

Core Features & Use Cases

  • Email/password authentication with optional verification and password resets
  • Social OAuth providers with account linking, 2FA, passkeys, Magic Links, and RBAC
  • Multi-tenant organization support with server/client integration patterns
  • Secure session management, auditing, and security best practices

Quick Start

Install better-auth in your project and configure the server and client following the examples in the references.

Frequently Asked Questions about authentication

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

FAQPage Schema
How do I implement secure authentication with OAuth and passkeys in a TypeScript web app?

Secure authentication with OAuth and passkeys in a TypeScript web app is implemented using a framework-agnostic solution. It provides social OAuth providers, account linking, passkeys, and Magic Links through a plugin-based feature composition system.

What is the best way to add multi-tenant organization support and RBAC to my application?

The best way to add multi-tenant organization support and RBAC is using a framework-agnostic authentication system. It delivers multi-tenant organization support with server and client integration patterns, alongside Role-Based Access Control for enterprise features.

Can I use this authentication solution with any web framework, or does it require a specific one?

This authentication solution is framework-agnostic and applies to web apps requiring secure, scalable authentication. It satisfies server configuration, client integration, and database adapters without locking you into a specific framework.

How do I set up email password authentication with optional verification and password resets?

Email password authentication with optional verification and password resets is configured via Better Auth. You install it in your project and follow the references to set up server and client integration for these features.

Does this authentication system handle secure session management and auditing?

Yes, this authentication system handles secure session management and auditing. It includes secure session management, auditing capabilities, and security best practices to ensure safe user authentication and authorization.

What are the limitations of using a plugin-based authentication system for web apps?

A plugin-based authentication system requires TypeScript and depends on database adapters for configuration. While it offers 2FA, passkeys, and multi-tenant support, you must compose features via plugins, which may add complexity to initial setup.