authentication
Complete authentication system with Better Auth, email verification, password reset, protected routes, and account management.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o authentication.zip https://jpskill.com/download/22398.zip && unzip -o authentication.zip && rm authentication.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22398.zip -OutFile "$d\authentication.zip"; Expand-Archive "$d\authentication.zip" -DestinationPath $d -Force; ri "$d\authentication.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
authentication.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
authenticationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[スキル名] 認証
認証
Better Auth、メール認証、パスワードリセット、保護されたルート、アカウント管理を備えた完全な認証システムです。
前提条件
まず、以下のレシピを順番に完了してください。
better-env を使用した型安全な環境設定
型安全なサーバー/パブリック環境アクセス、機能フラグ、およびどちらか一方の認証情報制約のために、better-env 設定モジュールを使用します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/config-schema-setup
Neon + Drizzle のセットアップ
Vercel サーバーレス関数向けに最適化された接続プールを使用して、Drizzle ORM で Next.js アプリを Neon Postgres に接続します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-drizzle-setup
Vercel 上の Next.js
Bun で実行される Next.js アプリを作成し、開発環境を設定し、プッシュ時に自動デプロイされるように Vercel にデプロイします。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/nextjs-on-vercel
Shadcn UI とテーマ設定
next-themes を使用して、ダークモードをサポートする Shadcn UI コンポーネントを追加します。テーマプロバイダーと CSS 変数の設定が含まれます。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/shadcn-ui-setup
クックブック - これらのレシピを順番に完了してください
Resend のセットアップ
パスワードリセットやメール認証などのトランザクションメール用に Resend を設定します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/resend-setup
Better Auth のセットアップ
Drizzle ORM と Neon Postgres を使用して、Better Auth でユーザー認証を追加します。メール/パスワード認証の基本設定です。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-setup
Better Auth のメール
Resend を使用して、Better Auth にメール認証、パスワードリセット、アカウント管理メールを追加します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-emails
Better Auth のコンポーネント
サインイン、サインアップ、パスワードを忘れた場合、パスワードリセット、メール認証を含む認証フロー用の UI コンポーネントとページを追加します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-components
Better Auth のプロフィールとアカウント
プロフィール編集、パスワード変更、メール更新、セッション管理、アカウント削除を含む完全なアカウント設定ページを追加します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-profile
Better Auth の保護されたルート
特定のページで認証を強制し、他のページを公開したままにするために、サーバーサイドのルート保護を追加します。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-protected-routes
認証の操作
クライアントサイドとサーバーサイドの認証に Better Auth を使用します。セッションアクセス、保護されたルート、サインイン/サインアウト、ユーザーデータの取得をカバーします。
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-authentication 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Authentication
Complete authentication system with Better Auth, email verification, password reset, protected routes, and account management.
Prerequisites
Complete these recipes first (in order):
Type-Safe Environment Configuration with better-env
Use better-env config modules for type-safe server/public env access, feature flags, and either-or credential constraints.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/config-schema-setup
Neon + Drizzle Setup
Connect a Next.js app to Neon Postgres using Drizzle ORM with optimized connection pooling for Vercel serverless functions.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-drizzle-setup
Next.js on Vercel
Create a Next.js app running on Bun, configure the development environment, and deploy to Vercel with automatic deployments on push.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/nextjs-on-vercel
Shadcn UI & Theming
Add Shadcn UI components with dark mode support using next-themes. Includes theme provider and CSS variables configuration.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/shadcn-ui-setup
Cookbook - Complete These Recipes in Order
Resend Setup
Configure Resend for transactional emails like password resets and email verification.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/resend-setup
Better Auth Setup
Add user authentication using Better Auth with Drizzle ORM and Neon Postgres. Base setup with email/password authentication.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-setup
Better Auth Emails
Add email verification, password reset, and account management emails to Better Auth using Resend.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-emails
Better Auth Components
Add UI components and pages for authentication flows including sign in, sign up, forgot password, reset password, and email verification.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-components
Better Auth Profile & Account
Add a complete account settings page with profile editing, password changes, email updates, session management, and account deletion.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-profile
Better Auth Protected Routes
Add server-side route protection to enforce authentication on specific pages while keeping others public.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-protected-routes
Working with Authentication
Use Better Auth for client and server-side authentication. Covers session access, protected routes, sign in/out, and fetching user data.
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-authentication