Toolverse
All skills

better-auth-best-practices

by novuhq

Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
novuhq
Category
Security
Views
48

About this skill

Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

How to use

  1. Zainstaluj zmienne środowiskowe: ustaw BETTER_AUTH_SECRET (minimum 32 znaki, możesz wygenerować za pomocą openssl rand -base64 32) oraz BETTER_AUTH_URL (np. https://example.com).

  2. Utwórz plik auth.ts w głównym katalogu projektu, w folderze ./lib, ./utils lub ./src. Plik powinien zawierać konfigurację Better Auth z opcjami takimi jak appName, basePath, database oraz włączonymi metodami uwierzytelniania (emailAndPassword, socialProviders).

  3. Uruchom migrację schematu bazy danych poleceniem npx @better-auth/cli@latest migrate, aby zastosować wymagane tabele.

  4. Jeśli używasz ORM (Prisma, Drizzle lub MongoDB), wygeneruj schemat za pomocą npx @better-auth/cli@latest generate, a następnie zsynchronizuj go z bazą danych.

  5. Po dodaniu lub zmianie pluginów ponownie uruchom migrację i generowanie schematu, aby upewnić się, że wszystkie nowe pola i tabele zostały utworzone.

  6. Aby zintegrować skill z narzędziami AI (np. Cursor), uruchom npx @better-auth/cli mcp --cursor i dodaj MCP do konfiguracji edytora.

Related skills

gmail-manager

by jeffvincent

Manage Gmail - send, read, search emails, manage labels and drafts. Use when user wants to interact with their Gmail account for email operations.

Security
17128

solidity-security

by wshobson

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

Security
10105

software-security

by project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

Security
1678

backend-security-coder

by sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

Security
1133

obsidian

by gapmiss

Comprehensive guidelines for Obsidian.md plugin development including all 27 ESLint rules, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, and submission requirements. Use when working with Obsidian plugins, main.ts files,

Security
14111

skill-writer

by pytorch

Guide users through creating Agent Skills for Claude Code. Use when the user wants to create, write, author, or design a new Skill, or needs help with SKILL.md files, frontmatter, or skill structure.

Security
15116