onmax/nuxt-skills

nuxt-better-auth

Guides authentication in Nuxt apps using @nuxtjs/better-auth.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/onmax/nuxt-skills --skill nuxt-better-auth

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Nuxt Better Auth

Use the smallest reference that matches the task.

Pick a reference

TaskRead
Install the module, configure environment variables, or create config filesreferences/installation.md
Read client session state, build auth forms, call plugins, or fetch auth-bound datareferences/client-auth.md
Read or enforce sessions in server handlers, create sessions, or refresh cached session datareferences/server-auth.md
Protect pages or API routes and configure redirectsreferences/route-protection.md
Register Better Auth plugins and their client companionsreferences/plugins.md
Configure NuxtHub, generated schema, or secondary storagereferences/database.md
Connect a Nuxt frontend to an external Better Auth serverreferences/client-only.md
Use inferred auth types or add project fieldsreferences/types.md

Rules that apply across tasks

  • Confirm the consumer's installed package version supports each API you use. The published skill may be newer than the consumer's lockfile.
  • Enforce protected API reads and mutations server-side with requireUserSession(event). Route rules and page meta also control navigation.
  • Navigate only to validated local redirect paths.
  • In clientOnly mode, do not use local server helpers or expect SSR session hydration.
  • After server-side changes to session payload fields, call refreshSessionCookieCache(event). Wrap custom client auth endpoints that create or change the current session with runWithSessionRefresh().

Before finishing an implementation, run the consumer's typecheck and the narrowest relevant auth test.

Resources

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills